Small fix for S3-AWS Config compatibility
- Small bug in tags with AWS Config - Aggregated results lack "tags" in the result set - Buckets also add a supplementary configuration of "BucketTaggingConfiguration"
This commit is contained in:
parent
6b67002a42
commit
503bc333ca
4 changed files with 27 additions and 6 deletions
|
|
@ -934,6 +934,10 @@ class FakeBucket(BaseModel):
|
|||
# This is a dobule-wrapped JSON for some reason...
|
||||
s_config = {'AccessControlList': json.dumps(json.dumps(self.acl.to_config_dict()))}
|
||||
|
||||
# Tagging is special:
|
||||
if config_dict['tags']:
|
||||
s_config['BucketTaggingConfiguration'] = json.dumps({'tagSets': [{'tags': config_dict['tags']}]})
|
||||
|
||||
# TODO implement Accelerate Configuration:
|
||||
s_config['BucketAccelerateConfiguration'] = {'status': None}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue