@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
def do_set_password(cs, args):
 server = _find_server(cs, args.server)
 p1 = getpass.getpass('New password: ')
 p2 = getpass.getpass('Again: ')
 if (p1 != p2):
  raise exceptions.CommandError(_('Passwords do not match.'))
 server.change_password(p1)

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) def do_set_password ( cs , args ) : server = _find_server ( cs , args . server ) p1 = getpass . getpass ( 'New password: ' ) p2 = getpass . getpass ( 'Again: ' ) if ( p1 != p2 ) : raise exceptions . CommandError ( _ ( 'Passwords do not match.' ) ) server . change_password ( p1 )
change the admin password for a server .