code: def _runlevel():
      '''
      Return the current runlevel
      '''
      contextkey = 'systemd._runlevel'
      if contextkey in __context__:
          return __context__[contextkey]
      out = __salt__['cmd.run']('runlevel', python_shell=False, ignore_retcode=True)
      try:
          ret = out.split()[1]
      except IndexError:
          # The runlevel is unknown, return the default
          ret = _default_runlevel()
      __context__[contextkey] = ret
      return ref _runlevel():
      '''
      Return the current runlevel
      '''
      contextkey = 'systemd._runlevel'
      if contextkey in __context__:
          return __context__[contextkey]
      out = __salt__['cmd.run']('runlevel', python_shell=False, ignore_retcode=True)
      try:
          ret = out.split()[1]
      except IndexError:
          # The runlevel is unknown, return the default
          ret = _default_runlevel()
      __context__[contextkey] = ret
      return ret
docs: Return the current runlevel