code: def _systemctl_status(name):
      '''
      Helper function which leverages __context__ to keep from running 'systemctl
      status' more than once.
      '''
      contextkey = 'systemd._systemctl_status.%s' % name
      if contextkey in __context__:
          return __context__[contextkey]
      __context__[contextkey] = __salt__['cmd.run_all'](
          _systemctl_cmd('status', name),
          python_shell=False,
          redirect_stderr=True,
          ignore_retcode=True
      )
      return __context__[contextkeyf _systemctl_status(name):
      '''
      Helper function which leverages __context__ to keep from running 'systemctl
      status' more than once.
      '''
      contextkey = 'systemd._systemctl_status.%s' % name
      if contextkey in __context__:
          return __context__[contextkey]
      __context__[contextkey] = __salt__['cmd.run_all'](
          _systemctl_cmd('status', name),
          python_shell=False,
          redirect_stderr=True,
          ignore_retcode=True
      )
      return __context__[contextkey]
docs: Helper function which leverages __context__ to keep from running 'systemctl
      status' more than once.