Fix log debug error
log debug lead to TypeError now, we need use dict mode Change-Id: Ib40c7a65a6c09154f36fe8c80a74c230811c4c45
This commit is contained in:
parent
905f047cbd
commit
e81da07191
|
@ -56,8 +56,9 @@ class LinuxDist(object):
|
|||
base_vdev, device_num)
|
||||
target_net_conf_file_name = file_path + file_name
|
||||
cfg_str_for_log = cfg_str.replace('\n', ' ')
|
||||
LOG.debug('Network configure file[%s] content is: %s',
|
||||
(target_net_conf_file_name, cfg_str_for_log))
|
||||
LOG.debug('Network configure file[%(file)s] content is: %(cfg)s',
|
||||
{'file': target_net_conf_file_name,
|
||||
'cfg': cfg_str_for_log})
|
||||
cfg_files.append((target_net_conf_file_name, cfg_str))
|
||||
udev_cfg_str += self._get_udev_configuration(device_num,
|
||||
'0.0.' + str(base_vdev).zfill(4))
|
||||
|
|
Loading…
Reference in New Issue