def list_clusters(call=None):
 if (call == 'action'):
  raise SaltCloudSystemExit('The list_clusters function must be called with -f or --function.')
 (server, user, password) = _get_xml_rpc()
 auth = ':'.join([user, password])
 cluster_pool = server.one.clusterpool.info(auth)[1]
 clusters = {}
 for cluster in _get_xml(cluster_pool):
  clusters[cluster.find('NAME').text] = _xml_to_dict(cluster)
 return clusters

def list_clusters ( call = None ) : if ( call == 'action' ) : raise SaltCloudSystemExit ( 'The list_clusters function must be called with -f or --function.' ) ( server , user , password ) = _get_xml_rpc ( ) auth = ':' . join ( [ user , password ] ) cluster_pool = server . one . clusterpool . info ( auth ) [ 1 ] clusters = { } for cluster in _get_xml ( cluster_pool ) : clusters [ cluster . find ( 'NAME' ) . text ] = _xml_to_dict ( cluster ) return clusters
list all the clusters for this vmware environment cli example: .