diff --git a/cinder/image/image_utils.py b/cinder/image/image_utils.py index e9ed86f5834..cb637b995f4 100644 --- a/cinder/image/image_utils.py +++ b/cinder/image/image_utils.py @@ -56,7 +56,7 @@ CONF.register_opts(image_helper_opts) def qemu_img_info(path, run_as_root=True): - """Return a object containing the parsed output from qemu-img info.""" + """Return an object containing the parsed output from qemu-img info.""" cmd = ('env', 'LC_ALL=C', 'qemu-img', 'info', path) if os.name == 'nt': cmd = cmd[2:] diff --git a/cinder/scheduler/host_manager.py b/cinder/scheduler/host_manager.py index d4c1135eab7..3568202a530 100644 --- a/cinder/scheduler/host_manager.py +++ b/cinder/scheduler/host_manager.py @@ -221,7 +221,7 @@ class HostState(object): self._append_backend_info(capability) self.pools[pool_name] = single_pool else: - # this is a update from legacy driver + # this is an update from legacy driver try: single_pool = self.pools[pool_name] except KeyError: diff --git a/cinder/utils.py b/cinder/utils.py index dfb14fe8a6c..8a7237792fc 100644 --- a/cinder/utils.py +++ b/cinder/utils.py @@ -282,7 +282,7 @@ def last_completed_audit_period(unit=None): def list_of_dicts_to_dict(seq, key): - """Convert list of dicts to a indexted dict. + """Convert list of dicts to an indexted dict. Takes a list of dicts, and converts it a nested dict indexed by diff --git a/cinder/volume/api.py b/cinder/volume/api.py index 8f7e62cac2b..f7c625b09a7 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -461,7 +461,7 @@ class API(base.Base): # NOTE(thangp): Update is called by various APIs, some of which are # not yet using oslo_versionedobjects. We need to handle the case - # where volume is either a dict or a oslo_versionedobject. + # where volume is either a dict or an oslo_versionedobject. if isinstance(volume, objects_base.CinderObject): volume.update(fields) volume.save() diff --git a/cinder/volume/drivers/emc/emc_vmax_masking.py b/cinder/volume/drivers/emc/emc_vmax_masking.py index b3b2b98b73e..f0627f0ae0f 100644 --- a/cinder/volume/drivers/emc/emc_vmax_masking.py +++ b/cinder/volume/drivers/emc/emc_vmax_masking.py @@ -786,7 +786,7 @@ class EMCVMAXMasking(object): def _create_or_get_initiator_group( self, conn, controllerConfigService, igGroupName, connector, storageSystemName, extraSpecs): - """Attempt to create a initiatorGroup. + """Attempt to create an initiatorGroup. If one already exists with the same Initiator/wwns then get it. Check to see if an initiatorGroup already exists, that matches the diff --git a/cinder/volume/drivers/hitachi/hnas_backend.py b/cinder/volume/drivers/hitachi/hnas_backend.py index 0e4688e21a6..61877aa2fd8 100644 --- a/cinder/volume/drivers/hitachi/hnas_backend.py +++ b/cinder/volume/drivers/hitachi/hnas_backend.py @@ -356,7 +356,7 @@ class HnasBackend(object): tgt_list.append(tgt) if tgtalias is not None: - # We tried to find 'tgtalias' but didn't find. Return a empty + # We tried to find 'tgtalias' but didn't find. Return an empty # list. LOG.debug("There's no target %(alias)s in EVS %(evsid)s.", {'alias': tgtalias, 'evsid': evsid})