From d09eee32aa0ee756ce7062d61e7e006b6346fe00 Mon Sep 17 00:00:00 2001 From: Nikolay Sobolevskiy Date: Thu, 25 Jul 2013 14:27:35 +0400 Subject: [PATCH] Using volume name property instead of using template and id. Change-Id: I478f875ed509fb591799a78b7fd52bc830e6fd1c --- cinder/volume/drivers/lvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'], -- 2.45.2