]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
fix missing unit in log message
authorKun Huang <academicgareth@gmail.com>
Tue, 10 Sep 2013 15:34:26 +0000 (23:34 +0800)
committerKun Huang <academicgareth@gmail.com>
Wed, 11 Sep 2013 02:57:08 +0000 (10:57 +0800)
Bad log message:
    "extend volume 1 to 2"
Correct one:
    "extend volume 1 GB to 2 GB"

(also update my profile in .mailmap)

Change-Id: I6d229c4440f2f5443b45a10f3912c20e21c63f32

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

index d447c4ca4220492ea1038ec6632f271d3bab5220..4302849432da79dc5e928b2ea80b5522126c71ff 100644 (file)
--- a/.mailmap
+++ b/.mailmap
@@ -26,6 +26,7 @@
 <dprince@redhat.com> <dan.prince@rackspace.com>
 <edouard1.thuleau@orange.com> <thuleau@gmail.com>
 <ewan.mellor@citrix.com> <emellor@silver>
+<gareth@unitedstack.com> <academicgareth@gmail.com>
 <ghe@debian.org> <ghe.rivero@gmail.com>
 <itoumsn@nttdata.co.jp> <itoumsn@shayol>
 <jake@ansolabs.com> <jake@markupisart.com>
index c42f6ba331cd93863cd02f656d62aa4a1db1b0d9..b05dd8187a2b08faaeaa8b79a0346bfe2c835313 100644 (file)
@@ -314,7 +314,7 @@ class CoraidAppliance(object):
         return esm_result
 
     def resize_volume(self, volume_name, new_volume_size_in_gb):
-        LOG.debug(_('Resize volume "%(name)s" to %(size)s') %
+        LOG.debug(_('Resize volume "%(name)s" to %(size)s GB.') %
                   {'name': volume_name,
                    'size': new_volume_size_in_gb})
         repository = self.get_volume_repository(volume_name)
@@ -332,7 +332,7 @@ class CoraidAppliance(object):
                    'args': 'resize'}
         esm_result = self.esm_command(request)
 
-        LOG.debug(_('Volume "%(name)s" resized. New size is %(size)s') %
+        LOG.debug(_('Volume "%(name)s" resized. New size is %(size)s GB.') %
                   {'name': volume_name,
                    'size': new_volume_size_in_gb})
         return esm_result
index 6749af18aee850fae03e6dda96b3445099665092..da8b1104033efb5991a478cf00adfdcc344847a8 100644 (file)
@@ -810,5 +810,5 @@ class RBDDriver(driver.VolumeDriver):
             LOG.error(msg)
             raise exception.VolumeBackendAPIException(data=msg)
 
-        LOG.debug(_("Extend volume from %(old_size)s to %(new_size)s"),
+        LOG.debug(_("Extend volume from %(old_size)s GB to %(new_size)s GB."),
                   {'old_size': old_size, 'new_size': new_size})
index c68f85a6bbf613492b932448df18dce7e30c5582..54e85a594be0907b82ad732cbc69458e10196080 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)s to %(new_size)s"),
+        LOG.debug(_("Extend volume from %(old_size)s GB to %(new_size)s GB."),
                   {'old_size': old_size, 'new_size': new_size})
 
     def backup_volume(self, context, backup, backup_service):
index 9c2738e82343c2d317894be91b634630619f0317..0e62b736aad7545796fd9a5e8391b6a4cb58238a 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)s to %(new_size)s"),
+        LOG.debug(_("Extend volume from %(old_size)s GB to %(new_size)s GB."),
                   {'old_size': old_size, 'new_size': new_size})
         additional_size = (new_size - old_size) * 1024
         self.utils.extend(volume['name'], additional_size)