]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Hitachi: Fix access to volume instance_uuid
authorWalter A. Boring IV <walter.boring@hp.com>
Thu, 26 Mar 2015 05:04:00 +0000 (05:04 +0000)
committerWalter A. Boring IV <walter.boring@hp.com>
Fri, 27 Mar 2015 15:02:39 +0000 (08:02 -0700)
commit2fc920a55c39af815641b85f7d71458257202a1b
treea2a90d8dbc0d83dcac78a2a42c1d45892d911fb5
parentf9b743ee94a7e483c6bb5cd5fbe13e0ef5f92c52
Hitachi: Fix access to volume instance_uuid

The instance_uuid and attached_host no longer exists
in the volume object.  It's part of the attachments that
show up in volume['volume_attachment'].

This patch now tests to see if there are any volume
attachments at all via the volume['volume_attachment'] list.

Change-Id: I6b06adaf408e9458a9d4d8c73a6749bd3a282340
Closes-Bug: 1436605
cinder/volume/drivers/hitachi/hbsd_fc.py
cinder/volume/drivers/hitachi/hbsd_iscsi.py