Fix client plugin name when calling ignore_not_found
When deleting the snapshot image for server resource, we didn't use the correct client plugin, to use 'glance' instead of 'nova'. Change-Id: I2c0e72cd6819ba2b1e27308a32b59f020804fcfd
This commit is contained in:
parent
668799d00c
commit
d9bd5f5290
@ -1697,7 +1697,7 @@ class Server(server_base.BaseServer, sh.SchedulerHintsMixin,
|
||||
|
||||
def handle_delete_snapshot(self, snapshot):
|
||||
image_id = snapshot['resource_data'].get('snapshot_image_id')
|
||||
with self.client_plugin().ignore_not_found:
|
||||
with self.client_plugin('glance').ignore_not_found:
|
||||
self.client('glance').images.delete(image_id)
|
||||
|
||||
def handle_restore(self, defn, restore_data):
|
||||
|
Loading…
x
Reference in New Issue
Block a user