From: Alan Date: Mon, 4 Jan 2016 06:10:46 +0000 (-0500) Subject: Fix grammatical mistake in defining articles. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=12ebdae1b38c800bdb9e978c3a99b3dd09aa765a;p=openstack-build%2Fcinder-build.git Fix grammatical mistake in defining articles. Wrong usage of word 'an' in defining articles, it should be "a volume" instead of "an volume". Change-Id: Iad4e7dcfbdcec568fc6a6f70b04d47a344f703e0 --- diff --git a/cinder/api/v2/views/volumes.py b/cinder/api/v2/views/volumes.py index ff9e64342..b201b95f2 100644 --- a/cinder/api/v2/views/volumes.py +++ b/cinder/api/v2/views/volumes.py @@ -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'], diff --git a/cinder/db/api.py b/cinder/db/api.py index 82feec5eb..beec7be82 100644 --- a/cinder/db/api.py +++ b/cinder/db/api.py @@ -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. diff --git a/cinder/scheduler/driver.py b/cinder/scheduler/driver.py index 610808a29..02b081611 100644 --- a/cinder/scheduler/driver.py +++ b/cinder/scheduler/driver.py @@ -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 diff --git a/cinder/scheduler/host_manager.py b/cinder/scheduler/host_manager.py index 3568202a5..aa812232d 100644 --- a/cinder/scheduler/host_manager.py +++ b/cinder/scheduler/host_manager.py @@ -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 diff --git a/cinder/tests/unit/api/contrib/test_volume_type_encryption.py b/cinder/tests/unit/api/contrib/test_volume_type_encryption.py index 557cd7d2a..3aeaec9a7 100644 --- a/cinder/tests/unit/api/contrib/test_volume_type_encryption.py +++ b/cinder/tests/unit/api/contrib/test_volume_type_encryption.py @@ -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 diff --git a/cinder/volume/drivers/rbd.py b/cinder/volume/drivers/rbd.py index 2b67b790d..33c8f3d73 100644 --- a/cinder/volume/drivers/rbd.py +++ b/cinder/volume/drivers/rbd.py @@ -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). """