S3: fixed tagging (#6491)
This commit is contained in:
parent
1098d4557f
commit
55a72f3e88
@ -1923,7 +1923,7 @@ class S3Response(BaseResponse):
|
|||||||
|
|
||||||
tags = {}
|
tags = {}
|
||||||
for tag in parsed_xml["Tagging"]["TagSet"]["Tag"]:
|
for tag in parsed_xml["Tagging"]["TagSet"]["Tag"]:
|
||||||
tags[tag["Key"]] = tag["Value"]
|
tags[tag["Key"]] = tag["Value"] or ""
|
||||||
|
|
||||||
return tags
|
return tags
|
||||||
|
|
||||||
|
@ -69,6 +69,7 @@ def test_put_bucket_tagging():
|
|||||||
"TagSet": [
|
"TagSet": [
|
||||||
{"Key": "TagOne", "Value": "ValueOne"},
|
{"Key": "TagOne", "Value": "ValueOne"},
|
||||||
{"Key": "TagTwo", "Value": "ValueTwo"},
|
{"Key": "TagTwo", "Value": "ValueTwo"},
|
||||||
|
{"Key": "TagThree", "Value": ""},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -222,6 +223,7 @@ def test_put_object_tagging():
|
|||||||
"TagSet": [
|
"TagSet": [
|
||||||
{"Key": "item1", "Value": "foo"},
|
{"Key": "item1", "Value": "foo"},
|
||||||
{"Key": "item2", "Value": "bar"},
|
{"Key": "item2", "Value": "bar"},
|
||||||
|
{"Key": "item3", "Value": ""},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user