Follow up of stop using six library

Change-Id: I5fcd5babbadfb075cbc85bf4f9e18fdeddbce44a
Follow-Up: https://review.opendev.org/697059
This commit is contained in:
Riccardo Pittau 2019-12-05 00:59:19 +01:00
parent a2c976077a
commit 2f77c3095e
2 changed files with 3 additions and 3 deletions

View File

@ -504,7 +504,7 @@ def parse_statistics(raw_data):
# there is not "bad time" in standard, reset to start the epoch
statistics['timestamp'] = _INVALID_TIME
LOG.warning('Invalid timestamp in Node Nanager statistics '
'data: %s', str(e))
'data: %s', e)
else:
statistics['timestamp'] = isotime

View File

@ -114,7 +114,7 @@ def _execute_nm_command(task, data, command_func, parse_func=None):
with excutils.save_and_reraise_exception():
LOG.exception('Can not obtain Intel Node Manager address for '
'node %(node)s: %(err)s',
{'node': task.node.uuid, 'err': str(e)})
{'node': task.node.uuid, 'err': e})
driver_info = task.node.driver_info
driver_info['ipmi_bridging'] = 'single'
driver_info['ipmi_target_channel'] = channel
@ -128,7 +128,7 @@ def _execute_nm_command(task, data, command_func, parse_func=None):
with excutils.save_and_reraise_exception():
LOG.exception('Error in returned data for node %(node)s: '
'%(err)s', {'node': task.node.uuid,
'err': str(e)})
'err': e})
class IntelNMVendorPassthru(base.VendorInterface):