Merge "Enhance descriptions for get and clear password"

This commit is contained in:
Jenkins 2016-05-12 09:38:42 +00:00 committed by Gerrit Code Review
commit eea2512ec8

View File

@ -2485,7 +2485,10 @@ def do_get_mks_console(cs, args):
nargs='?',
default=None)
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)
data = server.get_password(args.private_key)
print(data)
@ -2493,7 +2496,9 @@ def do_get_password(cs, args):
@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
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.clear_password()