Merge pull request #2505 from mikegrima/configFix

Fixed a bug with S3 bucket policies for AWS Config
This commit is contained in:
Mike Grima 2019-10-22 15:53:18 -07:00 committed by GitHub
commit 57dc6522f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 7 deletions

View file

@ -946,7 +946,7 @@ class FakeBucket(BaseModel):
}
s_config['BucketPolicy'] = {
'policyText': self.policy if self.policy else None
'policyText': self.policy.decode('utf-8') if self.policy else None
}
s_config['IsRequesterPaysEnabled'] = 'false' if self.payer == 'BucketOwner' else 'true'