]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
VMware: Fixed usage of volume instance_uuid
authorWalter A. Boring IV <walter.boring@hp.com>
Thu, 26 Mar 2015 05:09:59 +0000 (05:09 +0000)
committerVipin Balachandran <vbala@vmware.com>
Thu, 26 Mar 2015 10:56:21 +0000 (03:56 -0700)
commit5fdada85969ca770db60892e2c4f67d917efa0d5
tree6ab62b20701408cb0e48fb599ab925a130f5e893
parente759f1182893457b3fb670059df357c8df46a50f
VMware: Fixed usage of volume instance_uuid

instance_uuid and attached_host no longer exist in the volume object.
They have been moved into the volume_attachment list attachments.

This patch now tests for non-empty volume_attachment list instead of
testing the existence of a non None value of instance_uuid.

Change-Id: I04c46dc49849fb1e0abf955dcc6d7ec1ce5e57a5
Closes-Bug: 1436603
cinder/tests/test_vmware_vmdk.py
cinder/volume/drivers/vmware/vmdk.py