Wrong usage of "a"
Wrong usage of "a" in the mesages: "Convert list of dicts to a indexted dict" "Attempt to create a initiatorGroup" "Return a empty" "Return a object containing the parsed output" "where volume is either a dict or a oslo_versionedobject" "this is a update from legacy driver" Should be: "Convert list of dicts to an indexted dict" "Attempt to create an initiatorGroup" "Return an empty" "Return an object containing the parsed output" "where volume is either a dict or an oslo_versionedobject" "this is an update from legacy driver" Totally 6 occasions in Cinder base code. Change-Id: I209fa7817f531107ae15a980f81c02fe63dd557e
This commit is contained in:
parent
94d4b15943
commit
98e7e991db
@ -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:]
|
||||
|
@ -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:
|
||||
|
@ -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 <key>
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user