2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-17 21:23:18 +00:00

Merge pull request #27 from jufm/encodedstring

Handling encoded input strings
This commit is contained in:
Jarrod Johnson 2015-09-24 11:22:53 -04:00
commit c1bd46b22a

View File

@ -409,7 +409,7 @@ class InputAttributes(ConfluentMessage):
# as above, use format() to see if string follows
# expression, store value back in case of escapes
tv = nodeattr[attr].format()
nodeattr[attr] = tv
nodeattr[attr] = str(tv)
except (KeyError, IndexError):
# an expression string will error if format() done
# use that as cue to put it into config as an expr