Fix the upload-logs-s3 test playbook
This change fixes the following error: :stderr: error: externally-managed-environment × This environment is externally managed Change-Id: I779b68aa6bfd5cc4a5831c727e820f49ed946a97
This commit is contained in:
parent
55db214278
commit
0a9c50f1c5
@ -114,7 +114,9 @@ class Uploader():
|
|||||||
CORSConfiguration=cors)
|
CORSConfiguration=cors)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# MinIO (which we use in testing) doesn't implement this method
|
# MinIO (which we use in testing) doesn't implement this method
|
||||||
if 'MalformedXML' not in str(e):
|
minio_cors = "PutBucketCors operation: A header you provided " + \
|
||||||
|
"implies functionality that is not implemented"
|
||||||
|
if 'MalformedXML' not in str(e) and minio_cors not in str(e):
|
||||||
raise
|
raise
|
||||||
|
|
||||||
def upload(self, file_list):
|
def upload(self, file_list):
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Install boto
|
- name: Install boto
|
||||||
pip:
|
pip:
|
||||||
|
extra_args: "--break-system-packages"
|
||||||
name:
|
name:
|
||||||
- boto3
|
- boto3
|
||||||
- botocore
|
- botocore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user