ci: tolerate 'InvalidAccessKeyId' (#24741)

Add 'InvalidAccessKeyId' to the list of error messages we expect
and tolerate in push_mirror_contents()
This commit is contained in:
Zack Galbreath 2021-07-09 12:39:16 -04:00 committed by GitHub
parent 72585afcef
commit 0e177cb95f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)