Browse Source

Add conversion types in some strings

Some strings have no conversion types
for 'String Formatting Operations'.

Change-Id: I2c6176954643a93898ff2d06d686793fb0977458
Closes-Bug: #1289230
tags/2014.1.rc1
KIYOHIRO ADACHI 5 years ago
parent
commit
7f643ca464

+ 1
- 1
cinder/brick/iscsi/iscsi.py View File

@@ -177,7 +177,7 @@ class TgtAdm(TargetAdmin):
177 177
         f.write(volume_conf)
178 178
         f.close()
179 179
         LOG.debug(_('Created volume path %(vp)s,\n'
180
-                    'content: %(vc)%')
180
+                    'content: %(vc)s')
181 181
                   % {'vp': volume_path, 'vc': volume_conf})
182 182
 
183 183
         old_persist_file = None

+ 1
- 1
cinder/volume/drivers/ibm/storwize_svc/helpers.py View File

@@ -339,7 +339,7 @@ class StorwizeHelpers(object):
339 339
                     found = True
340 340
             if not found:
341 341
                 LOG.warning(_('unmap_vol_from_host: No mapping of volume '
342
-                              '%(vol_name)s to host %(host) found.') %
342
+                              '%(vol_name)s to host %(host)s found.') %
343 343
                             {'vol_name': volume_name, 'host': host_name})
344 344
 
345 345
         # We now know that the mapping exists

+ 1
- 1
cinder/volume/drivers/nexenta/iscsi.py View File

@@ -177,7 +177,7 @@ class NexentaISCSIDriver(driver.ISCSIDriver):  # pylint: disable=R0921
177 177
             try:
178 178
                 self.delete_snapshot({'volume_name': volume, 'name': snapshot})
179 179
             except nexenta.NexentaException as exc:
180
-                LOG.warning(_('Cannot delete snapshot %(origin): %(exc)s'),
180
+                LOG.warning(_('Cannot delete snapshot %(origin)s: %(exc)s'),
181 181
                             {'origin': origin, 'exc': exc})
182 182
 
183 183
     def create_cloned_volume(self, volume, src_vref):

+ 2
- 2
cinder/zonemanager/drivers/brocade/brcd_fc_san_lookup_service.py View File

@@ -132,7 +132,7 @@ class BrcdFCSanLookupService(FCSanLookupService):
132 132
                                     "fabric %s") % fabric_ip)
133 133
                 except Exception as e:
134 134
                     msg = _("SSH connection failed "
135
-                            "for %(fabric) with error: %(err)"
135
+                            "for %(fabric)s with error: %(err)s"
136 136
                             ) % {'fabric': fabric_ip, 'err': e}
137 137
                     LOG.error(msg)
138 138
                     raise exception.FCSanLookupServiceException(message=msg)
@@ -212,7 +212,7 @@ class BrcdFCSanLookupService(FCSanLookupService):
212 212
             stdin, stdout, stderr = self.client.exec_command(cmd)
213 213
             switch_data = stdout.readlines()
214 214
         except paramiko.SSHException as e:
215
-            msg = (_("SSH Command failed with error '%(err)r' "
215
+            msg = (_("SSH Command failed with error '%(err)s' "
216 216
                      "'%(command)s'") % {'err': e,
217 217
                                          'command': cmd})
218 218
             LOG.error(msg)

Loading…
Cancel
Save