]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: Fix instance_uuid access in volume retype
authorVipin Balachandran <vbala@vmware.com>
Mon, 30 Mar 2015 13:29:03 +0000 (06:29 -0700)
committerVipin Balachandran <vbala@vmware.com>
Tue, 31 Mar 2015 05:57:34 +0000 (22:57 -0700)
commitcb658b5e0437d72b1929f7bcbed79795288f5d13
treeb5ffdadce2721fd8a7e6b22de0f40a023995b75f
parent00ca77befeb38adc58b140fb3c445e9f91cfd30f
VMware: Fix instance_uuid access in volume retype

Retype implementation still uses volume['instance_uuid'] to
check in-use volumes. This patch replaces it with a check
for non-empty volume['volume_attachment'] list.

Change-Id: I268d30ed259a04f8bcf05fb0d45ba1d8e8332c34
Closes-Bug: #1438185
cinder/tests/test_vmware_vmdk.py
cinder/volume/drivers/vmware/vmdk.py