@utils.arg('--all-tenants', action='store_const', const=1, default=0, help=_('Stop server(s) in another tenant by name (Admin only).'))
@utils.arg('server', metavar='<server>', nargs='+', help=_('Name or ID of server(s).'))
def do_stop(cs, args):
 find_args = {'all_tenants': args.all_tenants}
 utils.do_action_on_many((lambda s: _find_server(cs, s, **find_args).stop()), args.server, _('Request to stop server %s has been accepted.'), _('Unable to stop the specified server(s).'))

@ utils . arg ( '--all-tenants' , action = 'store_const' , const = 1 , default = 0 , help = _ ( 'Stop server(s) in another tenant by name (Admin only).' ) ) @ utils . arg ( 'server' , metavar = '<server>' , nargs = '+' , help = _ ( 'Name or ID of server(s).' ) ) def do_stop ( cs , args ) : find_args = { 'all_tenants' : args . all_tenants } utils . do_action_on_many ( ( lambda s : _find_server ( cs , s , ** find_args ) . stop ( ) ) , args . server , _ ( 'Request to stop server %s has been accepted.' ) , _ ( 'Unable to stop the specified server(s).' ) )
stop the server(s) .