fix the %{} when string formating
use %() instead of %{} when string formating Closes-Bug #1622289 Change-Id: I1bd15c03cf3df9e1ec16a518383407eff5594f56
This commit is contained in:
parent
7ff588cd95
commit
42a5c8eeae
@ -781,7 +781,7 @@ class V7000Common(object):
|
||||
raise loopingcall.LoopingCallDone(retvalue=True)
|
||||
elif mb_copied is not None:
|
||||
# copy is in progress
|
||||
LOG.debug("MB copied: %{copied}d, percent done: %{percent}d.",
|
||||
LOG.debug("MB copied: %(copied)d, percent done: %(percent)d.",
|
||||
{'copied': mb_copied, 'percent': percent})
|
||||
pass
|
||||
elif percent == 0:
|
||||
@ -794,7 +794,7 @@ class V7000Common(object):
|
||||
raise loopingcall.LoopingCallDone(retvalue=True)
|
||||
else:
|
||||
# unexpected case
|
||||
LOG.debug("unexpected case (%{id}s, %{bytes}s, %{percent}s)",
|
||||
LOG.debug("unexpected case (%(id)s, %(bytes)s, %(percent)s)",
|
||||
{'id': target_id,
|
||||
'bytes': mb_copied,
|
||||
'percent': six.text_type(percent)})
|
||||
|
@ -139,7 +139,7 @@ class CxtAdm(iscsi.ISCSITarget):
|
||||
old_name = kwargs.get('old_name', None)
|
||||
if old_name:
|
||||
LOG.debug('Detected old persistence file for volume '
|
||||
'%{vol}s at %{old_name}s',
|
||||
'%(vol)s at %(old_name)s',
|
||||
{'vol': vol_id, 'old_name': old_name})
|
||||
old_persist_file = os.path.join(volumes_dir, old_name)
|
||||
|
||||
|
@ -171,7 +171,7 @@ class TgtAdm(iscsi.ISCSITarget):
|
||||
old_name = kwargs.get('old_name', None)
|
||||
if old_name is not None:
|
||||
LOG.debug('Detected old persistence file for volume '
|
||||
'%{vol}s at %{old_name}s',
|
||||
'%(vol)s at %(old_name)s',
|
||||
{'vol': vol_id, 'old_name': old_name})
|
||||
old_persist_file = os.path.join(volumes_dir, old_name)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user