swift/container/sync.py uses swift.common.internal_client.delete_object
and put_object and expected these methods raise ClientException.
But delete_object and put_object never raise the exception so this patch
raises ClientException when urllib2 library raises HTTPError.
Co-Authored-By: Eran Rom <email address hidden>
Closes-Bug: #1419901
Change-Id: I58cbf77988979a07998a46d9d81be84d29b0d9bf
Reviewed: https:/ /review. openstack. org/256306 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=23c7a58f8f1 412c28b3a16b79b e09c224c9f7d55
Committed: https:/
Submitter: Jenkins
Branch: master
commit 23c7a58f8f1412c 28b3a16b79be09c 224c9f7d55
Author: Hisashi Osanai <email address hidden>
Date: Fri Dec 11 18:26:34 2015 +0900
Fix ClientException handling in Container Sync
swift/ container/ sync.py uses swift.common. internal_ client. delete_ object
and put_object and expected these methods raise ClientException.
But delete_object and put_object never raise the exception so this patch
raises ClientException when urllib2 library raises HTTPError.
Co-Authored-By: Eran Rom <email address hidden> 07998a46d9d81be 84d29b0d9bf
Closes-Bug: #1419901
Change-Id: I58cbf77988979a