summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2021-07-09 12:39:16 -0400
committerGitHub <noreply@github.com>2021-07-09 09:39:16 -0700
commit0e177cb95fcc9aecdc7932632848b8425e20e549 (patch)
treeb7549a5710525ca01692edeb1943b9f0b5812786 /lib
parent72585afcef41fd89aac5d9ac3ebde4fe19abe1fa (diff)
downloadspack-0e177cb95fcc9aecdc7932632848b8425e20e549.tar.gz
spack-0e177cb95fcc9aecdc7932632848b8425e20e549.tar.bz2
spack-0e177cb95fcc9aecdc7932632848b8425e20e549.tar.xz
spack-0e177cb95fcc9aecdc7932632848b8425e20e549.zip
ci: tolerate 'InvalidAccessKeyId' (#24741)
Add 'InvalidAccessKeyId' to the list of error messages we expect and tolerate in push_mirror_contents()
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/ci.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/ci.py b/lib/spack/spack/ci.py
index 2ebbb842c5..7f3d88a925 100644
--- a/lib/spack/spack/ci.py
+++ b/lib/spack/spack/ci.py
@@ -1395,7 +1395,7 @@ def push_mirror_contents(env, spec, yaml_path, mirror_url, sign_binaries):
# BaseException
# object
err_msg = 'Error msg: {0}'.format(inst)
- if 'Access Denied' in err_msg:
+ if any(x in err_msg for x in ['Access Denied', 'InvalidAccessKeyId']):
tty.msg('Permission problem writing to {0}'.format(
mirror_url))
tty.msg(err_msg)