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
This commit is contained in:
Unmesh Gurjar 2012-08-31 07:25:39 -07:00
parent cabb54c580
commit 8c30edff98

View File

@ -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,