]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
fix log string in conversion type
authorKun Huang <academicgareth@gmail.com>
Wed, 4 Sep 2013 10:42:16 +0000 (18:42 +0800)
committerKun Huang <academicgareth@gmail.com>
Thu, 5 Sep 2013 02:42:46 +0000 (10:42 +0800)
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

cinder/volume/drivers/rbd.py
cinder/volume/drivers/sheepdog.py
cinder/volume/drivers/windows/windows.py

index 3bc580bff05baab27efdcef53ff59379e0e00b1f..7baeb5c4574dfb8c73b6238bee0d60367082faec 100644 (file)
@@ -612,5 +612,5 @@ class RBDDriver(driver.VolumeDriver):
             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})
index 28b07ba45b05cb80aa4eb3f300360c90b254ec6f..c68f85a6bbf613492b932448df18dce7e30c5582 100644 (file)
@@ -197,7 +197,7 @@ class SheepdogDriver(driver.VolumeDriver):
             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):
index 24cf401772ffd2a4d2abbf198dbe328ae2cd7681..9c2738e82343c2d317894be91b634630619f0317 100644 (file)
@@ -221,7 +221,7 @@ class WindowsDriver(driver.ISCSIDriver):
     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)