The client currently downloads the image metadata to check if it's deleted
or not. This logic belongs to the server and it's already implemented
there. Instead of getting the image, send the delete request and catch
the 404 error, which is already raised by the server.
Change-Id: I1e6ef42340f8e380ff99b9d6ca7ea416e0eebfbc
Closes-bug: #1496305
(cherry picked from commit b8a881f5ea89514d715e61b632bc3081a0dde2c6)
(cherry picked from commit e82d9df74cbac9accc8a6724c0759760e44bb315)
Reviewed: https:/ /review. openstack. org/225068 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=68cf63da7a5 3a88f0b977bf9f9 ce875a51ecb407
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 68cf63da7a53a88 f0b977bf9f9ce87 5a51ecb407
Author: Flavio Percoco <email address hidden>
Date: Wed Sep 16 10:56:31 2015 +0200
Don't get the image before deleting it
The client currently downloads the image metadata to check if it's deleted
or not. This logic belongs to the server and it's already implemented
there. Instead of getting the image, send the delete request and catch
the 404 error, which is already raised by the server.
Change-Id: I1e6ef42340f8e3 80ff99b9d6ca7ea 416e0eebfbc d715e61b632bc30 81a0dde2c6) ccc8a6724c07597 60e44bb315)
Closes-bug: #1496305
(cherry picked from commit b8a881f5ea89514
(cherry picked from commit e82d9df74cbac9a