From 8872bac47b5b5c9637c9b4f91aec36f5f714ad3c Mon Sep 17 00:00:00 2001 From: sanuptpm Date: Tue, 29 Jul 2014 20:25:19 +0530 Subject: [PATCH] Change corrupted spelling mistakes Change-Id: I62b4d94d135fa620fac071a5196957c11bb03b77 --- cinder/openstack/common/lockutils.py | 2 +- cinder/openstack/common/policy.py | 2 +- cinder/tests/test_storwize_svc.py | 8 ++++---- cinder/volume/drivers/nimble.py | 8 ++++---- cinder/volume/drivers/san/hp/hp_3par_common.py | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cinder/openstack/common/lockutils.py b/cinder/openstack/common/lockutils.py index 005ad3cf9..3a3100d76 100644 --- a/cinder/openstack/common/lockutils.py +++ b/cinder/openstack/common/lockutils.py @@ -164,7 +164,7 @@ def synchronized(name, lock_file_prefix, external=False, lock_path=None): :param external: The external keyword argument denotes whether this lock should work across multiple processes. This means that if two different - workers both run a a method decorated with @synchronized('mylock', + workers both run a method decorated with @synchronized('mylock', external=True), only one of them will execute at a time. :param lock_path: The lock_path keyword argument is used to specify a diff --git a/cinder/openstack/common/policy.py b/cinder/openstack/common/policy.py index a0a954c12..20f1765d9 100644 --- a/cinder/openstack/common/policy.py +++ b/cinder/openstack/common/policy.py @@ -82,7 +82,7 @@ def enforce(match_list, target_dict, credentials_dict, exc=None, can use this to perform simple boolean logic. For example, the following rule would return True if the creds contain the role 'admin' OR the if the tenant_id matches - the target dict AND the the creds contains the role + the target dict AND the creds contains the role 'compute_sysadmin': :: diff --git a/cinder/tests/test_storwize_svc.py b/cinder/tests/test_storwize_svc.py index 1ba302073..72763a211 100644 --- a/cinder/tests/test_storwize_svc.py +++ b/cinder/tests/test_storwize_svc.py @@ -2715,7 +2715,7 @@ class StorwizeSVCDriverTestCase(test.TestCase): volume, uid = self._create_volume_and_return_uid('manage_test') # Descriptor of the Cinder volume that we want to own the vdisk - # refrerenced by uid. + # referenced by uid. new_volume = self._generate_vol_info(None, None) # Submit the request to manage it. @@ -2747,7 +2747,7 @@ class StorwizeSVCDriverTestCase(test.TestCase): self.driver.initialize_connection(volume, conn) # Descriptor of the Cinder volume that we want to own the vdisk - # refrerenced by uid. + # referenced by uid. volume = self._generate_vol_info(None, None) ref = {'source-id': uid} @@ -2760,7 +2760,7 @@ class StorwizeSVCDriverTestCase(test.TestCase): """Tests managing a mapped volume with override. This test case attempts to manage an existing volume by UID, when it - it already mapped to a host, but the ref specifies that this is OK. + already mapped to a host, but the ref specifies that this is OK. We verify that the backend volume was renamed to have the name of the Cinder volume that we asked for it to be associated with. """ @@ -2775,7 +2775,7 @@ class StorwizeSVCDriverTestCase(test.TestCase): self.driver.initialize_connection(volume, conn) # Descriptor of the Cinder volume that we want to own the vdisk - # refrerenced by uid. + # referenced by uid. new_volume = self._generate_vol_info(None, None) # Submit the request to manage it, specifying that it is OK to diff --git a/cinder/volume/drivers/nimble.py b/cinder/volume/drivers/nimble.py index 68405423d..255a54eb3 100644 --- a/cinder/volume/drivers/nimble.py +++ b/cinder/volume/drivers/nimble.py @@ -497,7 +497,7 @@ class NimbleAPIExecutor: def create_vol(self, volume, pool_name, reserve): """Execute createVol API.""" response = self._execute_create_vol(volume, pool_name, reserve) - LOG.info(_('Successfuly create volume %s') % response['name']) + LOG.info(_('Successfully create volume %s') % response['name']) return response['name'] @_connection_checker @@ -509,7 +509,7 @@ class NimbleAPIExecutor: def get_group_config(self): """Execute getGroupConfig API.""" response = self._execute_get_group_config() - LOG.debug('Successfuly retrieved group config information') + LOG.debug('Successfully retrieved group config information') return response['info'] @_connection_checker @@ -552,7 +552,7 @@ class NimbleAPIExecutor: def get_vol_info(self, vol_name): """Execute getVolInfo API.""" response = self._execute_get_vol_info(vol_name) - LOG.info(_('Successfuly got volume information for volume %s') + LOG.info(_('Successfully got volume information for volume %s') % vol_name) return response['vol'] @@ -680,7 +680,7 @@ class NimbleAPIExecutor: def get_initiator_grp_list(self): """Execute getInitiatorGrpList API.""" response = self._execute_get_initiator_grp_list() - LOG.info(_('Successfuly retrieved InitiatorGrpList')) + LOG.info(_('Successfully retrieved InitiatorGrpList')) return (response['initiatorgrp-list'] if 'initiatorgrp-list' in response else []) diff --git a/cinder/volume/drivers/san/hp/hp_3par_common.py b/cinder/volume/drivers/san/hp/hp_3par_common.py index 23d23f7b6..bf4b1bda7 100644 --- a/cinder/volume/drivers/san/hp/hp_3par_common.py +++ b/cinder/volume/drivers/san/hp/hp_3par_common.py @@ -301,7 +301,7 @@ class HP3PARCommon(object): else: display_name = None - # Generate the new volume information based off of the new ID. + # Generate the new volume information based on the new ID. new_vol_name = self._get_3par_vol_name(volume['id']) name = 'volume-' + volume['id'] -- 2.45.2