Enhance descriptions for get and clear password

per http://paste.openstack.org/show/495955/
it shows nova get-password and clear-password is calling
'os-server-password' and in turn operate on metadata server
instead of the operating systme itself, the existing wording
lead to confusion in nova client description.

Change-Id: If69622c181ad3259855d45cb21909e5b7de53615
This commit is contained in:
jichenjc 2016-04-25 04:16:49 +08:00
parent 71680abacf
commit 4b4573ef9d

View File

@ -2446,7 +2446,10 @@ def do_get_mks_console(cs, args):
nargs='?', nargs='?',
default=None) default=None)
def do_get_password(cs, args): def do_get_password(cs, args):
"""Get the admin password for a server.""" """Get the admin password for a server. This operation calls the metadata
service to query metadata information and does not read password
information from the server itself.
"""
server = _find_server(cs, args.server) server = _find_server(cs, args.server)
data = server.get_password(args.private_key) data = server.get_password(args.private_key)
print(data) print(data)
@ -2454,7 +2457,9 @@ def do_get_password(cs, args):
@utils.arg('server', metavar='<server>', help=_('Name or ID of server.')) @utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
def do_clear_password(cs, args): def do_clear_password(cs, args):
"""Clear the admin password for a server.""" """Clear the admin password for a server from the metadata server.
This action does not actually change the instance server password.
"""
server = _find_server(cs, args.server) server = _find_server(cs, args.server)
server.clear_password() server.clear_password()