code: def _systemctl_cmd(action, name=None, systemd_scope=False, no_block=False,
                     root=None):
      '''
      Build a systemctl command line. Treat unit names without one
      of the valid suffixes as a service.
      '''
      ret = []
      if systemd_scope \
              and salt.utils.systemd.has_scope(__context__) \
              and __salt__['config.get']('systemd.scope', True):
          ret.extend(['systemd-run', '--scope'])
      ret.append('systemctl')
      if no_block:
          ret.append('--no-block')
      if root:
          ret.extend(['--root', root])
      if isinstance(action, six.string_types):
          action = shlex.split(action)
      ret.extend(action)
      if name is not None:
          ret.append(_canonical_unit_name(name))
      if 'status' in ret:
          ret.extend(['-n', '0'])
      return ref _systemctl_cmd(action, name=None, systemd_scope=False, no_block=False,
                     root=None):
      '''
      Build a systemctl command line. Treat unit names without one
      of the valid suffixes as a service.
      '''
      ret = []
      if systemd_scope \
              and salt.utils.systemd.has_scope(__context__) \
              and __salt__['config.get']('systemd.scope', True):
          ret.extend(['systemd-run', '--scope'])
      ret.append('systemctl')
      if no_block:
          ret.append('--no-block')
      if root:
          ret.extend(['--root', root])
      if isinstance(action, six.string_types):
          action = shlex.split(action)
      ret.extend(action)
      if name is not None:
          ret.append(_canonical_unit_name(name))
      if 'status' in ret:
          ret.extend(['-n', '0'])
      return ret
docs: Build a systemctl command line. Treat unit names without one
      of the valid suffixes as a service.