Add searchDepth when getClusterInfo called.

Without searchDepth, getClusterInfo shows every volume and
snapshot. It's an unused information and takes very long time.

Change-Id: Id590e3023f4446f01b965baf4e8ac61980101067
Closes-Bug: 1276388
This commit is contained in:
Jay Lee 2014-02-08 01:43:27 +00:00
parent 23b7700a38
commit 2517053549
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ class HPLeftHandCLIQProxy(SanISCSIDriver):
data['storage_protocol'] = 'iSCSI'
data['vendor_name'] = 'Hewlett-Packard'
result_xml = self._cliq_run_xml("getClusterInfo", {})
result_xml = self._cliq_run_xml("getClusterInfo", {'searchDepth': 1})
cluster_node = result_xml.find("response/cluster")
total_capacity = cluster_node.attrib.get("spaceTotal")
free_capacity = cluster_node.attrib.get("unprovisionedSpace")