From 414572f62645430eefbc8b11ec901e37287586cf Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 8 Feb 2018 13:45:17 -0500 Subject: [PATCH] Fix nodeattrib nodeattrib was broken by the nodeconfig changes --- confluent_client/confluent/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/confluent/client.py b/confluent_client/confluent/client.py index 4b2803d8..c2c2a560 100644 --- a/confluent_client/confluent/client.py +++ b/confluent_client/confluent/client.py @@ -315,7 +315,7 @@ def print_attrib_path(path, session, requestargs, options, rename=None): for node in sorted(res['databynode']): for attr, val in sorted( res['databynode'][node].items(), - key=lambda (k, v): v.get('sortid', k) if v else k): + key=lambda (k, v): v.get('sortid', k) if isinstance(v, dict) else k): seenattributes.add(attr) if rename: printattr = rename.get(attr, attr)