Some strings have no conversion types
for 'String Formatting Operations'.
Change-Id: I2c6176954643a93898ff2d06d686793fb0977458
Closes-Bug: #
1289230
f.write(volume_conf)
f.close()
LOG.debug(_('Created volume path %(vp)s,\n'
- 'content: %(vc)%')
+ 'content: %(vc)s')
% {'vp': volume_path, 'vc': volume_conf})
old_persist_file = None
found = True
if not found:
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})
# We now know that the mapping exists
try:
self.delete_snapshot({'volume_name': volume, 'name': snapshot})
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})
def create_cloned_volume(self, volume, src_vref):
"fabric %s") % fabric_ip)
except Exception as e:
msg = _("SSH connection failed "
- "for %(fabric) with error: %(err)"
+ "for %(fabric)s with error: %(err)s"
) % {'fabric': fabric_ip, 'err': e}
LOG.error(msg)
raise exception.FCSanLookupServiceException(message=msg)
stdin, stdout, stderr = self.client.exec_command(cmd)
switch_data = stdout.readlines()
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': cmd})
LOG.error(msg)