Merge pull request #166 from cbodley/wip-get-version

clear key.version_id now that GET requests return x-amz-version-id header

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
Yehuda Sadeh 2017-06-20 10:47:49 -07:00 committed by GitHub
commit 5342557f59

View file

@ -6808,6 +6808,8 @@ def test_versioning_obj_plain_null_version_overwrite():
key.set_contents_from_string(content2)
eq(key.get_contents_as_string(), content2)
# get_contents_to_string() will set key.version_id, clear it
key.version_id = None
version_id = None
for k in bucket.list_versions():