def list_vhosts(runas=None):
 if ((runas is None) and (not salt.utils.is_windows())):
  runas = salt.utils.get_user()
 res = __salt__['cmd.run_all']([__context__['rabbitmqctl'], 'list_vhosts', '-q'], runas=runas, python_shell=False)
 _check_response(res)
 return _output_to_list(res['stdout'])

def list_vhosts ( runas = None ) : if ( ( runas is None ) and ( not salt . utils . is_windows ( ) ) ) : runas = salt . utils . get_user ( ) res = __salt__ [ 'cmd.run_all' ] ( [ __context__ [ 'rabbitmqctl' ] , 'list_vhosts' , '-q' ] , runas = runas , python_shell = False ) _check_response ( res ) return _output_to_list ( res [ 'stdout' ] )
return a list of vhost based on rabbitmqctl list_vhosts .