]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix grammatical mistake in defining articles.
authorAlan <kaihongd@cn.ibm.com>
Mon, 4 Jan 2016 06:10:46 +0000 (01:10 -0500)
committerAlan <kaihongd@cn.ibm.com>
Tue, 5 Jan 2016 01:03:02 +0000 (01:03 +0000)
Wrong usage of word 'an' in defining articles, it should be
"a volume" instead of "an volume".

Change-Id: Iad4e7dcfbdcec568fc6a6f70b04d47a344f703e0

cinder/api/v2/views/volumes.py
cinder/db/api.py
cinder/scheduler/driver.py
cinder/scheduler/host_manager.py
cinder/tests/unit/api/contrib/test_volume_type_encryption.py
cinder/volume/drivers/rbd.py

index ff9e643422dd27e87f5ca92bd82ab2ed5de9c121..b201b95f28d5e772fd1d532fa55560b3052449b1 100644 (file)
@@ -43,7 +43,7 @@ class ViewBuilder(common.ViewBuilder):
                                self._collection_name + '/detail')
 
     def summary(self, request, volume):
-        """Generic, non-detailed view of an volume."""
+        """Generic, non-detailed view of a volume."""
         return {
             'volume': {
                 'id': volume['id'],
index 82feec5eb86eef2677b8dd541eef6253e1031bc8..beec7be828ac038987d12b63f6d5de23bc2f6c95 100644 (file)
@@ -241,7 +241,7 @@ def volume_get_iscsi_target_num(context, volume_id):
 
 
 def volume_update(context, volume_id, values):
-    """Set the given properties on an volume and update it.
+    """Set the given properties on a volume and update it.
 
     Raises NotFound if volume does not exist.
 
index 610808a299eb643ce56d157363e63740a277c13a..02b08161122f4fa898ee8d6229264b827112f744 100644 (file)
@@ -34,7 +34,7 @@ scheduler_driver_opts = [
                help='The scheduler host manager class to use'),
     cfg.IntOpt('scheduler_max_attempts',
                default=3,
-               help='Maximum number of attempts to schedule an volume'),
+               help='Maximum number of attempts to schedule a volume'),
 ]
 
 CONF = cfg.CONF
index 3568202a53034d501d5dcee0ed02257f1fa8846f..aa812232d22610a60a766adf6b1a2ecdf4c98940 100644 (file)
@@ -265,7 +265,7 @@ class HostState(object):
         self.updated = capability['timestamp']
 
     def consume_from_volume(self, volume):
-        """Incrementally update host state from an volume."""
+        """Incrementally update host state from a volume."""
         volume_gb = volume['size']
         self.allocated_capacity_gb += volume_gb
         self.provisioned_capacity_gb += volume_gb
index 557cd7d2a7c5f55a811bc0ff05ff176637ba942c..3aeaec9a7b6e44c402f1ff810519be2f0b062b8b 100644 (file)
@@ -481,7 +481,7 @@ class VolumeTypeEncryptionTest(test.TestCase):
 
     def test_delete_with_no_encryption(self):
         volume_type = self._default_volume_type
-        # create an volume type
+        # create a volume type
         db.volume_type_create(context.get_admin_context(), volume_type)
 
         # without creating encryption type, try to delete
index 2b67b790dc0276974ca19cbc7bda687fe439271e..33c8f3d73446cbd3bbbd79726f94f7ab7832f0a9 100644 (file)
@@ -612,7 +612,7 @@ class RBDDriver(driver.TransferVD, driver.ExtendVD,
         return (None, None, None)
 
     def _get_children_info(self, volume, snap):
-        """List children for the given snapshot of an volume(image).
+        """List children for the given snapshot of a volume(image).
 
         Returns a list of (pool, image).
         """