code: def _cmd_run(cmd):
      '''
      Run the aptly command.
  
      :return: The string output of the command.
      :rtype: str
      '''
      cmd.insert(0, 'aptly')
      cmd_ret = __salt__['cmd.run_all'](cmd, ignore_retcode=True)
  
      if cmd_ret['retcode'] != 0:
          log.debug('Unable to execute command: %s\nError: %s', cmd,
                     cmd_ret['stderr'])
  
      return cmd_ret['stdout'f _cmd_run(cmd):
      '''
      Run the aptly command.
  
      :return: The string output of the command.
      :rtype: str
      '''
      cmd.insert(0, 'aptly')
      cmd_ret = __salt__['cmd.run_all'](cmd, ignore_retcode=True)
  
      if cmd_ret['retcode'] != 0:
          log.debug('Unable to execute command: %s\nError: %s', cmd,
                     cmd_ret['stderr'])
  
      return cmd_ret['stdout']
docs: Run the aptly command.
  
      :return: The string output of the command.
      :rtype: str