From ebfbbcca2330ba5bb7f501357a60299c348502c4 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 26 Feb 2019 10:21:12 -0500 Subject: [PATCH] Fix reference to the logger class --- confluent_client/bin/nodediscover | 2 ++ confluent_server/confluent/firmwaremanager.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/nodediscover b/confluent_client/bin/nodediscover index 2e1092d1..7331b365 100755 --- a/confluent_client/bin/nodediscover +++ b/confluent_client/bin/nodediscover @@ -220,6 +220,8 @@ def list_discovery(options, session): if options.order.lower() == field.lower(): orderby = field if options.csv: + if orderby: + hsht csv.writer(sys.stdout).writerow(columns) else: outhandler = client.Tabulator(columns) diff --git a/confluent_server/confluent/firmwaremanager.py b/confluent_server/confluent/firmwaremanager.py index ca7524ea..6f819061 100644 --- a/confluent_server/confluent/firmwaremanager.py +++ b/confluent_server/confluent/firmwaremanager.py @@ -63,7 +63,7 @@ def execupdate(handler, filename, updateobj, type, owner, node): 'detail': errstr}) except Exception as e: if _tracelog is None: - _tracelog = log.logger('trace') + _tracelog = log.Logger('trace') _tracelog.log(traceback.format_exc(), ltype=log.DataTypes.event, event=log.Events.stacktrace) updateobj.handle_progress({'phase': 'error', 'progress': 0.0, 'detail': str(e)})