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:]
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:
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>
# 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()
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
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})