From: Nikolay Sobolevskiy Date: Thu, 25 Jul 2013 10:27:35 +0000 (+0400) Subject: Using volume name property instead of using template and id. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d09eee32aa0ee756ce7062d61e7e006b6346fe00;p=openstack-build%2Fcinder-build.git Using volume name property instead of using template and id. Change-Id: I478f875ed509fb591799a78b7fd52bc830e6fd1c --- diff --git a/cinder/volume/drivers/lvm.py b/cinder/volume/drivers/lvm.py index 18640c077..56e9ae1dd 100644 --- a/cinder/volume/drivers/lvm.py +++ b/cinder/volume/drivers/lvm.py @@ -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'],