]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Use the correct api to get the volume object.
authorAngus Salkeld <asalkeld@redhat.com>
Wed, 18 Apr 2012 06:15:47 +0000 (16:15 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Wed, 18 Apr 2012 06:18:16 +0000 (16:18 +1000)
It must be volume not nova. But nova is used for the attachment.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
heat/engine/resources.py

index 6532445220077e77bc33159eb77b1fb9a1cb6155..817dd0e0675862a94a244f1c565e73fdd9531b1f 100644 (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()