From b192cfebb85b4cb6b5f35df3c21ecfa15fc0aa49 Mon Sep 17 00:00:00 2001 From: RongzeZhu Date: Fri, 17 Aug 2012 10:07:05 +0800 Subject: [PATCH] Remove unused function 'wait_creation' function in cinder.volume.api.API is unused. Change-Id: I4062e026b3e227513321be18ee920a4e5882cbd7 --- cinder/volume/api.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cinder/volume/api.py b/cinder/volume/api.py index d97d4886d..79132a63b 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -180,15 +180,6 @@ class API(base.Base): "volume_id": volume_id, "snapshot_id": snapshot_id}}) - # TODO(yamahata): eliminate dumb polling - def wait_creation(self, context, volume): - volume_id = volume['id'] - while True: - volume = self.get(context, volume_id) - if volume['status'] != 'creating': - return - greenthread.sleep(1) - @wrap_check_policy def delete(self, context, volume): volume_id = volume['id'] -- 2.45.2