@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('private_key', metavar='<private-key>', help=_('Private key (used locally to decrypt password) (Optional). When specified, the command displays the clear (decrypted) VM password. When not specified, the ciphered VM password is displayed.'), nargs='?', default=None)
def do_get_password(cs, args):
 server = _find_server(cs, args.server)
 data = server.get_password(args.private_key)
 print(data)

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( 'private_key' , metavar = '<private-key>' , help = _ ( 'Private key (used locally to decrypt password) (Optional). When specified, the command displays the clear (decrypted) VM password. When not specified, the ciphered VM password is displayed.' ) , nargs = '?' , default = None ) def do_get_password ( cs , args ) : server = _find_server ( cs , args . server ) data = server . get_password ( args . private_key ) print ( data )
get the admin password for a server .