def _run_all(cmd, log_lvl=None, log_msg=None, exitcode=0):
 res = __salt__['cmd.run_all'](cmd)
 if (res['retcode'] == exitcode):
  if res['stdout']:
   return res['stdout']
  else:
   return True
 if (log_lvl is not None):
  log.log(LOG[log_lvl], log_msg.format(res['stderr']))
 return False

def _run_all ( cmd , log_lvl = None , log_msg = None , exitcode = 0 ) : res = __salt__ [ 'cmd.run_all' ] ( cmd ) if ( res [ 'retcode' ] == exitcode ) : if res [ 'stdout' ] : return res [ 'stdout' ] else : return True if ( log_lvl is not None ) : log . log ( LOG [ log_lvl ] , log_msg . format ( res [ 'stderr' ] ) ) return False
simple wrapper around cmd .