fix ignore public acls with py3 compatible code

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
This commit is contained in:
Abhishek Lekshmanan 2020-01-22 17:06:09 +01:00
parent 3b1571ace6
commit 4d675235dd

View file

@ -12687,7 +12687,7 @@ def test_ignore_public_acls():
client.put_object(Bucket=bucket_name,Key='key1',Body='abcde',ACL='public-read') client.put_object(Bucket=bucket_name,Key='key1',Body='abcde',ACL='public-read')
resp=alt_client.get_object(Bucket=bucket_name, Key='key1') resp=alt_client.get_object(Bucket=bucket_name, Key='key1')
eq(resp['Body'].read(), 'abcde') eq(_get_body(resp), 'abcde')
access_conf = {'BlockPublicAcls': False, access_conf = {'BlockPublicAcls': False,
'IgnorePublicAcls': True, 'IgnorePublicAcls': True,