code: def _run(self, cmd):
          '''
          Internal function for running commands. Used by the uninstall function.
  
          Args:
              cmd (str, list): The command to run
  
          Returns:
              str: The stdout of the command
          '''
  
          if isinstance(cmd, six.string_types):
              cmd = salt.utils.args.shlex_split(cmd)
  
          try:
              log.debug(cmd)
              p = subprocess.Popen(
                  cmd,
                  shell=True,
                  stdout=subprocess.PIPE,
                  stderr=subprocess.PIPE)
              return p.communicate()
  
          except (OSError, IOError) as exc:
              log.debug('Command Failed: %s', ' '.join(cmd))
              log.debug('Error: %s', exc)
              raise CommandExecutionError(excf _run(self, cmd):
          '''
          Internal function for running commands. Used by the uninstall function.
  
          Args:
              cmd (str, list): The command to run
  
          Returns:
              str: The stdout of the command
          '''
  
          if isinstance(cmd, six.string_types):
              cmd = salt.utils.args.shlex_split(cmd)
  
          try:
              log.debug(cmd)
              p = subprocess.Popen(
                  cmd,
                  shell=True,
                  stdout=subprocess.PIPE,
                  stderr=subprocess.PIPE)
              return p.communicate()
  
          except (OSError, IOError) as exc:
              log.debug('Command Failed: %s', ' '.join(cmd))
              log.debug('Error: %s', exc)
              raise CommandExecutionError(exc)
docs: Internal function for running commands. Used by the uninstall function.
  
          Args:
              cmd (str, list): The command to run
  
          Returns:
              str: The stdout of the command