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
This commit is contained in:
Alan 2016-01-04 01:10:46 -05:00
parent 257aa0f862
commit 12ebdae1b3
6 changed files with 6 additions and 6 deletions

View 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'],

View 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.

View 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

View 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

View 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

View 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).
"""