Skip to content

Commit

Permalink
Fix missing volume_name_template flag.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
j-griffith committed Jul 10, 2013
1 parent 2f5e26a commit 488fe5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinder/volume/drivers/lvm.py
Expand Up @@ -300,7 +300,7 @@ def copy_volume_to_image(self, context, volume, image_service, image_meta):
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'],
Expand Down

0 comments on commit 488fe5e

Please sign in to comment.