Fixed AWS Config S3 ACL issues

- AWS Config appears to have changed how ACLs are returned
- This PR makes moto's behavior consistent with AWS Config's S3 representation

Fixes #3986
This commit is contained in:
Mike Grima 2021-06-04 09:21:59 -07:00
commit ba7a0fe3a2
2 changed files with 25 additions and 5 deletions

View file

@ -436,10 +436,6 @@ class FakeAcl(BaseModel):
)
for permission in permissions:
for grantee in grant.grantees:
# Config does not add the owner if its permissions are FULL_CONTROL:
if permission == "FULL_CONTROL" and grantee.id == OWNER:
continue
if grantee.uri:
grant_list.append(
{