From 8c30edff982042d2533a810709308b586267c0e9 Mon Sep 17 00:00:00 2001 From: Unmesh Gurjar Date: Fri, 31 Aug 2012 07:25:39 -0700 Subject: [PATCH] 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 --- cinder/volume/manager.py | 1 - 1 file changed, 1 deletion(-) 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, -- 2.45.2