code: def _run_all(cmd, log_lvl=None, log_msg=None, exitcode=0):
      '''
      Simple wrapper around cmd.run_all
      log_msg can contain {0} for stderr
      :return: True or stdout, False if retcode wasn't exitcode
      '''
      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, res['stderr'])
      return Falsf _run_all(cmd, log_lvl=None, log_msg=None, exitcode=0):
      '''
      Simple wrapper around cmd.run_all
      log_msg can contain {0} for stderr
      :return: True or stdout, False if retcode wasn't exitcode
      '''
      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, res['stderr'])
      return False
docs: Simple wrapper around cmd.run_all
      log_msg can contain {0} for stderr
      :return: True or stdout, False if retcode wasn't exitcode