@utils.arg('server', metavar='<server>', help=_('Name (old name) or ID of server.'))
@utils.arg('--name', metavar='<name>', dest='name', default=None, help=_('New name for the server.'))
@utils.arg('--description', metavar='<description>', dest='description', default=None, help=_('New description for the server. If it equals to empty string (i.g. ""), the server description will be removed.'), start_version='2.19')
def do_update(cs, args):
 update_kwargs = {}
 if args.name:
  update_kwargs['name'] = args.name
 if (('description' in args) and (args.description is not None)):
  update_kwargs['description'] = args.description
 _find_server(cs, args.server).update(**update_kwargs)

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name (old name) or ID of server.' ) ) @ utils . arg ( '--name' , metavar = '<name>' , dest = 'name' , default = None , help = _ ( 'New name for the server.' ) ) @ utils . arg ( '--description' , metavar = '<description>' , dest = 'description' , default = None , help = _ ( 'New description for the server. If it equals to empty string (i.g. ""), the server description will be removed.' ) , start_version = '2.19' ) def do_update ( cs , args ) : update_kwargs = { } if args . name : update_kwargs [ 'name' ] = args . name if ( ( 'description' in args ) and ( args . description is not None ) ) : update_kwargs [ 'description' ] = args . description _find_server ( cs , args . server ) . update ( ** update_kwargs )
update the name or the description for a server .