From: Unmesh Gurjar Date: Fri, 31 Aug 2012 14:25:39 +0000 (-0700) Subject: Removed unnecessary call to ensure_export X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8c30edff982042d2533a810709308b586267c0e9;p=openstack-build%2Fcinder-build.git Removed unnecessary call to ensure_export Removed the extra call to 'ensure_export' from '_copy_image_to_volume' while creating a volume from an image. Fixes LP: #1044399 Change-Id: I189a4cb66b965367289c2f677147ee085e431190 --- diff --git a/cinder/volume/manager.py b/cinder/volume/manager.py index 68c4e6fec..bc82a5eb7 100644 --- a/cinder/volume/manager.py +++ b/cinder/volume/manager.py @@ -292,7 +292,6 @@ class VolumeManager(manager.SchedulerDependentManager): volume_id = volume['id'] payload = {'volume_id': volume_id, 'image_id': image_id} try: - self.driver.ensure_export(context.elevated(), volume) image_service, image_id = glance.get_remote_image_service(context, image_id) self.driver.copy_image_to_volume(context, volume, image_service,