From 9be20d45f164551081f956738dd02494fa59ec27 Mon Sep 17 00:00:00 2001 From: Kevin Klues Date: Mon, 19 Jun 2017 21:08:07 -0700 Subject: [PATCH] Added 'decode()' to template string from marathon 'decribe()' call. Without this decoding, the stream of bytes returned from the marathon describe call were being interpreted as a 'collection.Sequence' in the subsequent 'emitter.publish()' call. This was causing the subesequnt JSON encoding to blow up since it was interpeting it as the wrong type. --- cli/dcoscli/package/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/dcoscli/package/main.py b/cli/dcoscli/package/main.py index a92866b..cc25e69 100644 --- a/cli/dcoscli/package/main.py +++ b/cli/dcoscli/package/main.py @@ -285,7 +285,7 @@ def _describe(package_name, if render: app_output = pkg.marathon_json(user_options) else: - app_output = pkg.marathon_template() + app_output = pkg.marathon_template().decode("UTF-8") if app_output and app_output[-1] == '\n': app_output = app_output[:-1] emitter.publish(app_output)