By using 'grep -rn "%([a-zA-Z_]*) "', we could find all cases of
'%(variable)'. And we need add an 's' like '%(variable)s'.
Closes-Bug: #
1220557
Change-Id: Ib28b7ddc5e5aabe2b82a499d9c242c1982e7f953
LOG.error(msg)
raise exception.VolumeBackendAPIException(data=msg)
- LOG.debug(_("Extend volume from %(old_size) to %(new_size)"),
+ LOG.debug(_("Extend volume from %(old_size)s to %(new_size)s"),
{'old_size': old_size, 'new_size': new_size})
LOG.error(msg)
raise exception.VolumeBackendAPIException(data=msg)
- LOG.debug(_("Extend volume from %(old_size) to %(new_size)"),
+ LOG.debug(_("Extend volume from %(old_size)s to %(new_size)s"),
{'old_size': old_size, 'new_size': new_size})
def backup_volume(self, context, backup, backup_service):
def extend_volume(self, volume, new_size):
"""Extend an Existing Volume."""
old_size = volume['size']
- LOG.debug(_("Extended volume from %(old_size) to %(new_size)"),
+ LOG.debug(_("Extended volume from %(old_size)s to %(new_size)s"),
{'old_size': old_size, 'new_size': new_size})
additional_size = (new_size - old_size) * 1024
self.utils.extend(volume['name'], additional_size)