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:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user