]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix missing volume_name_template flag.
authorJohn Griffith <john.griffith@solidfire.com>
Wed, 10 Jul 2013 19:41:10 +0000 (13:41 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Wed, 10 Jul 2013 19:46:08 +0000 (13:46 -0600)
volume_template_name was converted to a self.configuration option,
however we don't import that opt in the self.configuration changes.

This patch switches the specifier back to the global CONF

Fixes bug: 1199909

Change-Id: I1431ba8a46b3a86ed77c02646a1c5fd1f62ae010

cinder/volume/drivers/lvm.py

index 4fba2db4ebaf76325bdacf1b1f320199cf50081e..0f9df0ffe61c8423f1b4bc3b4cc1164a6a1c6e6f 100644 (file)
@@ -300,7 +300,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 = self.configuration.volume_name_template % src_vref['id']
+        volume_name = CONF.volume_name_template % src_vref['id']
         temp_id = 'tmp-snap-%s' % src_vref['id']
         temp_snapshot = {'volume_name': volume_name,
                          'size': src_vref['size'],