diff --git a/doc/source/cli/nova.rst b/doc/source/cli/nova.rst index eada5c693..e80786795 100644 --- a/doc/source/cli/nova.rst +++ b/doc/source/cli/nova.rst @@ -2223,6 +2223,7 @@ nova list [--changes-before ] [--tags ] [--tags-any ] [--not-tags ] [--not-tags-any ] + [--locked] List servers. @@ -2344,6 +2345,14 @@ present in the failure domain. commas: --not-tags-any (Supported by API versions '2.26' - '2.latest') +``--locked `` + Display servers based on their locked value. A + value must be specified; eg. 'true' will list + only locked servers and 'false' will list only + unlocked servers. (Supported by API versions + '2.73' - '2.latest') + + .. _nova_list-extensions: nova list-extensions @@ -2464,7 +2473,7 @@ nova lock .. code-block:: console - usage: nova lock + usage: nova lock [--reason ] Lock a server. A normal (non-admin) user will not be able to execute actions on a locked server. @@ -2474,6 +2483,12 @@ on a locked server. ```` Name or ID of server. +**Optional arguments:** + +``--reason `` + Reason for locking the server. (Supported by API versions + '2.73' - '2.latest') + .. _nova_meta: nova meta diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index 4e8a730d3..88ebf2d79 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -1568,7 +1568,9 @@ def _print_flavor(flavor): dest='locked', metavar='', default=None, - help=_('Display servers based on their locked value'), + help=_("Display servers based on their locked value. A value must be " + "specified; eg. 'true' will list only locked servers and 'false' " + "will list only unlocked servers."), start_version="2.73") def do_list(cs, args): """List servers."""