code: def list_published(config_path=_DEFAULT_CONFIG_PATH):
      '''
      Get a list of all the published repositories.
  
      :param str config_path: The path to the configuration file for the aptly instance.
  
      :return: A list of the published repositories.
      :rtype: list
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' aptly.list_published
      '''
      _validate_config(config_path)
  
      ret = list()
      cmd = ['publish', 'list', '-config={}'.format(config_path), '-raw=true']
  
      cmd_ret = _cmd_run(cmd)
  
      for line in cmd_ret.splitlines():
          items = [item.strip() for item in line.split(' ', 1)]
          ret.append({
              'distribution': items[1],
              'prefix': items[0]
          })
  
      log.debug('Found published repositories: %s', len(ret))
      return ref list_published(config_path=_DEFAULT_CONFIG_PATH):
      '''
      Get a list of all the published repositories.
  
      :param str config_path: The path to the configuration file for the aptly instance.
  
      :return: A list of the published repositories.
      :rtype: list
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' aptly.list_published
      '''
      _validate_config(config_path)
  
      ret = list()
      cmd = ['publish', 'list', '-config={}'.format(config_path), '-raw=true']
  
      cmd_ret = _cmd_run(cmd)
  
      for line in cmd_ret.splitlines():
          items = [item.strip() for item in line.split(' ', 1)]
          ret.append({
              'distribution': items[1],
              'prefix': items[0]
          })
  
      log.debug('Found published repositories: %s', len(ret))
      return ret
docs: Get a list of all the published repositories.
  
      :param str config_path: The path to the configuration file for the aptly instance.
  
      :return: A list of the published repositories.
      :rtype: list
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' aptly.list_published