From 4b4573ef9dfdca67ceebe02726af028960b8948d Mon Sep 17 00:00:00 2001 From: jichenjc Date: Mon, 25 Apr 2016 04:16:49 +0800 Subject: [PATCH] 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 --- novaclient/v2/shell.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index baef1db53..ad9fc5d0c 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -2446,7 +2446,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) @@ -2454,7 +2457,9 @@ def do_get_password(cs, args): @utils.arg('server', metavar='', 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()