Add conversion types in some strings
Some strings have no conversion types for 'String Formatting Operations'. Change-Id: I2c6176954643a93898ff2d06d686793fb0977458 Closes-Bug: #1289230
This commit is contained in:
parent
aef1229acc
commit
7f643ca464
|
@ -177,7 +177,7 @@ class TgtAdm(TargetAdmin):
|
||||||
f.write(volume_conf)
|
f.write(volume_conf)
|
||||||
f.close()
|
f.close()
|
||||||
LOG.debug(_('Created volume path %(vp)s,\n'
|
LOG.debug(_('Created volume path %(vp)s,\n'
|
||||||
'content: %(vc)%')
|
'content: %(vc)s')
|
||||||
% {'vp': volume_path, 'vc': volume_conf})
|
% {'vp': volume_path, 'vc': volume_conf})
|
||||||
|
|
||||||
old_persist_file = None
|
old_persist_file = None
|
||||||
|
|
|
@ -339,7 +339,7 @@ class StorwizeHelpers(object):
|
||||||
found = True
|
found = True
|
||||||
if not found:
|
if not found:
|
||||||
LOG.warning(_('unmap_vol_from_host: No mapping of volume '
|
LOG.warning(_('unmap_vol_from_host: No mapping of volume '
|
||||||
'%(vol_name)s to host %(host) found.') %
|
'%(vol_name)s to host %(host)s found.') %
|
||||||
{'vol_name': volume_name, 'host': host_name})
|
{'vol_name': volume_name, 'host': host_name})
|
||||||
|
|
||||||
# We now know that the mapping exists
|
# We now know that the mapping exists
|
||||||
|
|
|
@ -177,7 +177,7 @@ class NexentaISCSIDriver(driver.ISCSIDriver): # pylint: disable=R0921
|
||||||
try:
|
try:
|
||||||
self.delete_snapshot({'volume_name': volume, 'name': snapshot})
|
self.delete_snapshot({'volume_name': volume, 'name': snapshot})
|
||||||
except nexenta.NexentaException as exc:
|
except nexenta.NexentaException as exc:
|
||||||
LOG.warning(_('Cannot delete snapshot %(origin): %(exc)s'),
|
LOG.warning(_('Cannot delete snapshot %(origin)s: %(exc)s'),
|
||||||
{'origin': origin, 'exc': exc})
|
{'origin': origin, 'exc': exc})
|
||||||
|
|
||||||
def create_cloned_volume(self, volume, src_vref):
|
def create_cloned_volume(self, volume, src_vref):
|
||||||
|
|
|
@ -132,7 +132,7 @@ class BrcdFCSanLookupService(FCSanLookupService):
|
||||||
"fabric %s") % fabric_ip)
|
"fabric %s") % fabric_ip)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
msg = _("SSH connection failed "
|
msg = _("SSH connection failed "
|
||||||
"for %(fabric) with error: %(err)"
|
"for %(fabric)s with error: %(err)s"
|
||||||
) % {'fabric': fabric_ip, 'err': e}
|
) % {'fabric': fabric_ip, 'err': e}
|
||||||
LOG.error(msg)
|
LOG.error(msg)
|
||||||
raise exception.FCSanLookupServiceException(message=msg)
|
raise exception.FCSanLookupServiceException(message=msg)
|
||||||
|
@ -212,7 +212,7 @@ class BrcdFCSanLookupService(FCSanLookupService):
|
||||||
stdin, stdout, stderr = self.client.exec_command(cmd)
|
stdin, stdout, stderr = self.client.exec_command(cmd)
|
||||||
switch_data = stdout.readlines()
|
switch_data = stdout.readlines()
|
||||||
except paramiko.SSHException as e:
|
except paramiko.SSHException as e:
|
||||||
msg = (_("SSH Command failed with error '%(err)r' "
|
msg = (_("SSH Command failed with error '%(err)s' "
|
||||||
"'%(command)s'") % {'err': e,
|
"'%(command)s'") % {'err': e,
|
||||||
'command': cmd})
|
'command': cmd})
|
||||||
LOG.error(msg)
|
LOG.error(msg)
|
||||||
|
|
Loading…
Reference in New Issue