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
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'],