diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index 3c1faf594c..123599ede0 100644 --- a/openstackclient/image/v2/image.py +++ b/openstackclient/image/v2/image.py @@ -824,6 +824,7 @@ class SetImage(command.Command): image = utils.find_resource( image_client.images, parsed_args.image) + activation_status = None if parsed_args.deactivate: image_client.images.deactivate(image.id) activation_status = "deactivated"