From 4d4368bb266c5fc8f4b13593a7f519ab60547e39 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Tue, 19 Jan 2016 16:15:59 -0700 Subject: [PATCH] Initialize activation status activation_status throws an exception if the image set fails because it is not initialized. Change-Id: Iff6d5a8844eed954fb1c0bcea96118b99ac6bcf4 --- openstackclient/image/v2/image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index ad536ba26b..106da9ef10 100644 --- a/openstackclient/image/v2/image.py +++ b/openstackclient/image/v2/image.py @@ -775,6 +775,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"