diff options
author | Maxim Yurchuk <maxim-yurchuk@ydb.tech> | 2024-12-12 15:00:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 15:00:43 +0000 |
commit | 42701242eaf5be980cb935631586d0e90b82641c (patch) | |
tree | 6dbf5fcd37d3c16591e196c4a69d166e3ab3a398 /contrib/python/moto/py3/patches/04-arcadia.patch | |
parent | 7f5a9f394dbd9ac290cabbb7977538656b3a541e (diff) | |
parent | f7c04b5876af3d16849ab5e3079c0eabbd4e3a00 (diff) | |
download | ydb-42701242eaf5be980cb935631586d0e90b82641c.tar.gz |
Merge pull request #12554 from vitalyisaev2/YQ-3839.with_rightlib.3
Import from Arcadia + YDB FQ: turning gateways_config.proto into a file without external dependencies
Diffstat (limited to 'contrib/python/moto/py3/patches/04-arcadia.patch')
-rw-r--r-- | contrib/python/moto/py3/patches/04-arcadia.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/python/moto/py3/patches/04-arcadia.patch b/contrib/python/moto/py3/patches/04-arcadia.patch new file mode 100644 index 0000000000..442fc5201d --- /dev/null +++ b/contrib/python/moto/py3/patches/04-arcadia.patch @@ -0,0 +1,11 @@ +--- contrib/python/moto/py3/moto/s3/models.py ++++ contrib/python/moto/py3/moto/s3/models.py +@@ -561,6 +561,8 @@ def get_canned_acl(acl): + grants = [FakeGrant([owner_grantee], [PERMISSION_FULL_CONTROL])] + if acl == "private": + pass # no other permissions ++ elif acl == "public-write": ++ grants.append(FakeGrant([ALL_USERS_GRANTEE], [PERMISSION_WRITE])) + elif acl == "public-read": + grants.append(FakeGrant([ALL_USERS_GRANTEE], [PERMISSION_READ])) + elif acl == "public-read-write": |