]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused function
authorRongzeZhu <zrzhit@gmail.com>
Fri, 17 Aug 2012 02:07:05 +0000 (10:07 +0800)
committerRongzeZhu <zrzhit@gmail.com>
Fri, 17 Aug 2012 02:07:05 +0000 (10:07 +0800)
'wait_creation' function in cinder.volume.api.API is unused.

Change-Id: I4062e026b3e227513321be18ee920a4e5882cbd7

cinder/volume/api.py

index d97d4886d40451564709d1e1d5ade0250b472688..79132a63be1f148f819d7e3715d90a7a6a594072 100644 (file)
@@ -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']