2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

remove debug and fixing issue checking attribute

This commit is contained in:
Allen Lin37 2017-04-13 22:07:47 -04:00
parent 2042bcb8f0
commit 86e502a47a

View File

@ -1143,11 +1143,9 @@ class ConfigManager(object):
raise ValueError("node {0} does not exist".format(node))
for attrname in attribmap[node].iterkeys():
attrval = attribmap[node][attrname]
print attrval
print allattributes.node[attrname]
try:
if (allattributes.node[attrname]['type'] == 'list' and
type(attrval) in (str, unicode)) and type(attrval)==list:
type(attrval) in (str, unicode)):
attrval = attrval.split(",")
except KeyError:
pass