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:
Angus Salkeld 2012-04-18 16:15:47 +10:00
parent 770224c050
commit 3e7499aea7
1 changed files with 1 additions and 1 deletions

View File

@ -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()