code: def list_vhosts(runas=None):
      '''
      Return a list of vhost based on rabbitmqctl list_vhosts.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rabbitmq.list_vhosts
      '''
      if runas is None and not salt.utils.platform.is_windows():
          runas = salt.utils.user.get_user()
      res = __salt__['cmd.run_all'](
          [RABBITMQCTL, 'list_vhosts', '-q'],
          reset_system_locale=False,
          runas=runas,
          python_shell=False)
      _check_response(res)
      return _output_to_list(res['stdout']f list_vhosts(runas=None):
      '''
      Return a list of vhost based on rabbitmqctl list_vhosts.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rabbitmq.list_vhosts
      '''
      if runas is None and not salt.utils.platform.is_windows():
          runas = salt.utils.user.get_user()
      res = __salt__['cmd.run_all'](
          [RABBITMQCTL, 'list_vhosts', '-q'],
          reset_system_locale=False,
          runas=runas,
          python_shell=False)
      _check_response(res)
      return _output_to_list(res['stdout'])
docs: Return a list of vhost based on rabbitmqctl list_vhosts.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rabbitmq.list_vhosts