Mention compute service set --up|--down requires 2.11 or greater

This simply updates the docs for the compute service set --up
and --down options to mention that --os-compute-api-version 2.11
or greater is required to use those options.

Change-Id: I52891fe36c84d0df3e868ab4f3c8e2357e9ba529
This commit is contained in:
Matt Riedemann 2019-07-24 12:03:01 -04:00
parent c474319909
commit b52a831f6b
2 changed files with 7 additions and 4 deletions

View File

@ -74,11 +74,12 @@ Set compute service properties
.. option:: --up
Force up service
Force up service. Requires ``--os-compute-api-version`` 2.11 or greater.
.. option:: --down
Force down service
Force down service. . Requires ``--os-compute-api-version`` 2.11 or
greater.
.. _compute_service_set-host:
.. describe:: <host>

View File

@ -152,12 +152,14 @@ class SetService(command.Command):
up_down_group.add_argument(
'--up',
action='store_true',
help=_('Force up service'),
help=_('Force up service. Requires ``--os-compute-api-version`` '
'2.11 or greater.'),
)
up_down_group.add_argument(
'--down',
action='store_true',
help=_('Force down service'),
help=_('Force down service. Requires ``--os-compute-api-version`` '
'2.11 or greater.'),
)
return parser