]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: optimize in get_cluster_refs
authorDongcan Ye <hellochosen@gmail.com>
Sat, 26 Dec 2015 10:02:59 +0000 (18:02 +0800)
committerDongcan Ye <hellochosen@gmail.com>
Sat, 26 Dec 2015 10:02:59 +0000 (18:02 +0800)
commit26b224b9ab7f8a527be2f271800f21d02a0fd0aa
tree1b9dfd997f000d942d180b365b9e6dac38df2fd6
parent94d4b1594379ddedf23b802f477fefe4c38a7619
VMware: optimize in get_cluster_refs

In get_cluster_refs method, for the sake of getting cluster names
references, there are two for loop sentences.

This patch merges into one for loop. (Trivial fix)

Change-Id: Ib7dfbe0294a5ee7988a18adfbf59159c2b6641e4
cinder/volume/drivers/vmware/volumeops.py