From 1cf00667e94310cd7d62756f3b58c3243a1acf9e Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Mon, 29 Jan 2018 17:10:01 +0530 Subject: [PATCH] generate redis config --- bench/config/redis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/config/redis.py b/bench/config/redis.py index 43423c8e..fe102135 100644 --- a/bench/config/redis.py +++ b/bench/config/redis.py @@ -56,8 +56,8 @@ def write_redis_config(template_name, context, bench_path): f.write(template.render(**context)) def get_redis_version(): - version_string = subprocess.check_output('redis-server --version', shell=True).strip() - + version_string = subprocess.check_output('redis-server --version', shell=True) + version_string = version_string.decode('utf-8').strip() # extract version number from string version = re.findall("\d+\.\d+", version_string) if not version: