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:
huangtianhua 2017-09-14 16:35:33 +08:00
parent 668799d00c
commit d9bd5f5290
1 changed files with 1 additions and 1 deletions

View File

@ -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):