From 7e5514ce509518e002d1dfe1a98c6ebb9f88ad1e Mon Sep 17 00:00:00 2001 From: Tony Alaniz Date: Mon, 17 Jun 2019 13:29:31 -0700 Subject: [PATCH] Decode minicluster responses for Python 3 compatibility --- tools/minicluster/minicluster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/minicluster/minicluster.py b/tools/minicluster/minicluster.py index b9acec4f..1ac39b25 100755 --- a/tools/minicluster/minicluster.py +++ b/tools/minicluster/minicluster.py @@ -257,9 +257,9 @@ def create_cassandra_store(config): ) # by api design, exec_start needs to be called after exec_create # to run 'docker exec' - resp = cli.exec_start(exec_id=setup_exe) + resp = (cli.exec_start(exec_id=setup_exe)).decode("utf-8") if resp == "": - resp = cli.exec_start(exec_id=show_exe) + resp = (cli.exec_start(exec_id=show_exe)).decode("utf-8") if "CREATE KEYSPACE peloton_test WITH" in resp: print_utils.okgreen("cassandra store is created") return