diff --git a/glance/store/swift.py b/glance/store/swift.py index 9c42481263..f32b1724e2 100644 --- a/glance/store/swift.py +++ b/glance/store/swift.py @@ -472,7 +472,9 @@ def delete(self, location): # be hogging up network or file I/O here... swift_conn.delete_object(obj_container, segment['name']) - swift_conn.delete_object(loc.container, loc.obj) + else: + swift_conn.delete_object(loc.container, loc.obj) + except swift_client.ClientException, e: if e.http_status == httplib.NOT_FOUND: uri = location.get_store_uri()