Add image re/deactivate commands

This change allows admins to deactivate and reactivate their
images. Currently this has to be done with the REST api or the
glanceclient.

This change introduces `--deactivate` and `--activate` for the `image
set` command.

This requires glanceclient 1.2.0. Which got bumped here:
https://review.openstack.org/#/c/257512/

Change-Id: I476c44a0343cdc92d58ddc93fb06470242de2345
Depends-On: I2c370c6bf6ff664d94d756cc76aaa983fbdb8869
Closes-Bug: 1516661
This commit is contained in:
NiallBunting
2015-12-14 14:28:45 +00:00
parent 1ee5191cec
commit b3943d7142
3 changed files with 101 additions and 2 deletions
doc/source/command-objects
openstackclient
image
tests

@ -243,6 +243,7 @@ Set image properties
[--os-distro <os-distro>]
[--os-version <os-version>]
[--ramdisk-id <ramdisk-id>]
[--activate|--deactivate]
<image>
.. option:: --name <name>
@ -387,6 +388,18 @@ Set image properties
.. versionadded:: 2
.. option:: --activate
Activate the image.
.. versionadded:: 2
.. option:: --deactivate
Deactivate the image.
.. versionadded:: 2
.. describe:: <image>
Image to modify (name or ID)