Use the correct api to get the volume object.
It must be volume not nova. But nova is used for the attachment. Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
770224c050
commit
3e7499aea7
|
@ -442,7 +442,7 @@ class VolumeAttachment(Resource):
|
|||
volume_id=volume_id,
|
||||
device=self.t['Properties']['Device'])
|
||||
|
||||
vol = volapi.get(va.id)
|
||||
vol = self.nova('volume').volumes.get(va.id)
|
||||
while vol.status == 'available' or vol.status == 'attaching':
|
||||
eventlet.sleep(1)
|
||||
vol.get()
|
||||
|
|
Loading…
Reference in New Issue