]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
fix typo in config.py
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 22 Jan 2015 01:38:37 +0000 (02:38 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 8 Feb 2015 09:56:14 +0000 (10:56 +0100)
Change help texts and messages from GigaByte/Gigabyte(s) to correct
spelling gigabyte(s).

Change-Id: I6b9d80dad619a9f02cef10d2a303c30b6c4572fb
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
cinder/common/config.py
cinder/exception.py
cinder/tests/api/contrib/test_backups.py
cinder/tests/api/contrib/test_volume_transfer.py

index 6c54156136cac381641f052af7b7afc92a58c9bd..5631a37266c9b469b86d17b7d03c282be3d6baf8 100644 (file)
@@ -175,7 +175,7 @@ global_opts = [
                      'with its options'),
     cfg.BoolOpt('no_snapshot_gb_quota',
                 default=False,
-                help='Whether snapshots count against GigaByte quota'),
+                help='Whether snapshots count against gigabyte quota'),
     cfg.StrOpt('transfer_api_class',
                default='cinder.transfer.api.API',
                help='The full class name of the volume transfer API class'),
index b236bc1a316c28c63540693c50b18e508755b164..90025e0af315e8d471d9bd4ca975a0d0f8d846df 100644 (file)
@@ -444,13 +444,13 @@ class QuotaError(CinderException):
 
 
 class VolumeSizeExceedsAvailableQuota(QuotaError):
-    message = _("Requested volume or snapshot exceeds allowed Gigabytes "
+    message = _("Requested volume or snapshot exceeds allowed gigabytes "
                 "quota. Requested %(requested)sG, quota is %(quota)sG and "
                 "%(consumed)sG has been consumed.")
 
 
 class VolumeBackupSizeExceedsAvailableQuota(QuotaError):
-    message = _("Requested backup exceeds allowed Backup Gigabytes "
+    message = _("Requested backup exceeds allowed Backup gigabytes "
                 "quota. Requested %(requested)sG, quota is %(quota)sG and "
                 "%(consumed)sG has been consumed.")
 
index 3bf5f22a745775aa5899dc1407c9e86dab1ef97e..55bf52077b31097d446f19960af450db34db4bbe 100644 (file)
@@ -908,7 +908,7 @@ class BackupsAPITestCase(test.TestCase):
         self.assertEqual(res_dict['overLimit']['code'], 413)
         self.assertEqual(res_dict['overLimit']['message'],
                          'Requested volume or snapshot exceeds allowed '
-                         'Gigabytes quota. Requested 2G, quota is 3G and '
+                         'gigabytes quota. Requested 2G, quota is 3G and '
                          '2G has been consumed.')
 
     @mock.patch('cinder.backup.API.restore')
index 9ba455f9fc532385ab1035571fda04e690b7f47d..e870882dc282b52183ae37a7fc460700842ead95 100644 (file)
@@ -568,7 +568,7 @@ class VolumeTransferAPITestCase(test.TestCase):
         self.assertEqual(res_dict['overLimit']['code'], 413)
         self.assertEqual(res_dict['overLimit']['message'],
                          'Requested volume or snapshot exceeds allowed '
-                         'Gigabytes quota. Requested 2G, quota is 3G and '
+                         'gigabytes quota. Requested 2G, quota is 3G and '
                          '2G has been consumed.')
 
     def test_accept_transfer_with_VolumeLimitExceeded(self):