def cmd(name, fun=None, arg=(), **kwargs):
 ret = {'name': name, 'changes': {}, 'comment': '', 'result': True}
 if (fun is None):
  fun = name
 client = salt.runner.RunnerClient(__opts__)
 low = {'fun': fun, 'arg': arg, 'kwargs': kwargs}
 client.cmd_async(low)
 return ret

def cmd ( name , fun = None , arg = ( ) , ** kwargs ) : ret = { 'name' : name , 'changes' : { } , 'comment' : '' , 'result' : True } if ( fun is None ) : fun = name client = salt . runner . RunnerClient ( __opts__ ) low = { 'fun' : fun , 'arg' : arg , 'kwargs' : kwargs } client . cmd_async ( low ) return ret
execute fun with the given args and kwargs .