From 3e7499aea7d710602ddaef498f201dbeb6c1c834 Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Wed, 18 Apr 2012 16:15:47 +1000 Subject: [PATCH] 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 --- heat/engine/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/engine/resources.py b/heat/engine/resources.py index 65324452..817dd0e0 100644 --- a/heat/engine/resources.py +++ b/heat/engine/resources.py @@ -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() -- 2.45.2