Fix image get to use new osc release

Current osc uses openstacksdk[1] to get image,
and this patch fix cyborgclient to fit that.

[1] https://review.opendev.org/#/c/650374/

Change-Id: If3e59aed4346827e9efa89704025e2fd5c74762b
This commit is contained in:
Shogo Saito
2020-06-09 16:19:18 +09:00
parent 2505c104b6
commit 1d6b92ad79

View File

@@ -154,7 +154,7 @@ class ProgramDeployable(command.ShowOne):
raise exc.CommandError(_('deployable not found: %s') % dep_uuid) raise exc.CommandError(_('deployable not found: %s') % dep_uuid)
image_uuid = parsed_args.image_uuid image_uuid = parsed_args.image_uuid
image_client = self.app.client_manager.image.images image_client = self.app.client_manager.image
try: try:
image_client.get(image_uuid) image_client.get(image_uuid)
except sdk_exc.ResourceNotFound: except sdk_exc.ResourceNotFound: