def _proxy_cmd(command, *args, **kwargs):
 proxy_prefix = __opts__['proxy']['proxytype']
 proxy_cmd = '.'.join([proxy_prefix, command])
 if (proxy_cmd not in __proxy__):
  return False
 for k in kwargs.keys():
  if k.startswith('__pub_'):
   kwargs.pop(k)
 return __proxy__[proxy_cmd](*args, **kwargs)

def _proxy_cmd ( command , * args , ** kwargs ) : proxy_prefix = __opts__ [ 'proxy' ] [ 'proxytype' ] proxy_cmd = '.' . join ( [ proxy_prefix , command ] ) if ( proxy_cmd not in __proxy__ ) : return False for k in kwargs . keys ( ) : if k . startswith ( '__pub_' ) : kwargs . pop ( k ) return __proxy__ [ proxy_cmd ] ( * args , ** kwargs )
run commands from __proxy__ :mod:salt .