]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Using volume name property instead of using template and id.
authorNikolay Sobolevskiy <nsobolevsky@mirantis.com>
Thu, 25 Jul 2013 10:27:35 +0000 (14:27 +0400)
committerNikolay Sobolevskiy <nsobolevsky@mirantis.com>
Thu, 25 Jul 2013 10:50:08 +0000 (14:50 +0400)
Change-Id: I478f875ed509fb591799a78b7fd52bc830e6fd1c

cinder/volume/drivers/lvm.py

index 18640c077df8d6ba9f199ebc50cfb6d41a122696..56e9ae1dd1ead97b157f604b13cdf29a2568d469 100644 (file)
@@ -248,7 +248,7 @@ class LVMVolumeDriver(driver.VolumeDriver):
     def create_cloned_volume(self, volume, src_vref):
         """Creates a clone of the specified volume."""
         LOG.info(_('Creating clone of volume: %s') % src_vref['id'])
-        volume_name = CONF.volume_name_template % src_vref['id']
+        volume_name = src_vref['name']
         temp_id = 'tmp-snap-%s' % volume['id']
         temp_snapshot = {'volume_name': volume_name,
                          'size': src_vref['size'],