From bb03e4a9618aa6c1aa4df27880a73473e46754c0 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 16 Oct 2017 10:38:13 -0400 Subject: [PATCH] Fix HTML view for simple string values Simple string values were incorrectly treated in the HTML view. Fix it so the data is actually readable. --- confluent_server/confluent/messages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/messages.py b/confluent_server/confluent/messages.py index 48f0eb9a..62684dde 100644 --- a/confluent_server/confluent/messages.py +++ b/confluent_server/confluent/messages.py @@ -138,7 +138,8 @@ class ConfluentMessage(object): '\r').format(valtype, key, self.desc) return snippet - if isinstance(val, bool): + if (isinstance(val, bool) or isinstance(val, str) or + isinstance(val, unicode)): value = str(val) elif val is not None and 'value' in val: value = val['value']