From 69cbeecf1b0b194ca8e23a06c00d620ab6d18388 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 24 Aug 2017 13:44:21 -0400 Subject: [PATCH] Correct fixup for untyped data --- confluent_server/confluent/config/configmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/config/configmanager.py b/confluent_server/confluent/config/configmanager.py index a96b3724..36291d37 100644 --- a/confluent_server/confluent/config/configmanager.py +++ b/confluent_server/confluent/config/configmanager.py @@ -233,7 +233,7 @@ def fixup_attribute(attrname, attrval): # right now it's just net. attributes netattrparts = attrname.split('.') attrname = netattrparts[0] + '.' + netattrparts[-1] - if not isinstance(attrval, allattributes.node[attrname]['type']): + if 'type' in allattributes.node[attrname] and not isinstance(attrval, allattributes.node[attrname]['type']): if (allattributes.node[attrname]['type'] == bool and (isinstance(attrval, str) or isinstance(attrval, unicode))): return attrval.lower() in ('true', '1', 'y', 'yes', 'enable', 'enabled')