diff options
| author | Terry Howe <terrylhowe@gmail.com> | 2016-01-19 16:15:59 -0700 |
|---|---|---|
| committer | Terry Howe <terrylhowe@gmail.com> | 2016-01-19 16:15:59 -0700 |
| commit | 4d4368bb266c5fc8f4b13593a7f519ab60547e39 (patch) | |
| tree | 0dbf7088c01d642f1d8ec419bc54fa99dc7d5b8c /openstackclient | |
| parent | 86fcd67468708a1edd23f3ff6eb852b43bc618bd (diff) | |
| download | python-openstackclient-4d4368bb266c5fc8f4b13593a7f519ab60547e39.tar.gz | |
Initialize activation status
activation_status throws an exception if the image set fails
because it is not initialized.
Change-Id: Iff6d5a8844eed954fb1c0bcea96118b99ac6bcf4
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/image/v2/image.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index ad536ba2..106da9ef 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" |
