File decode-subprocess_get_response-results.diff of Package koan.13374
From f80e299b2990e7ce21bdb6b154c1acf4890ad448 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion@nwra.com>
Date: Thu, 24 Oct 2019 15:46:05 -0600
Subject: [PATCH] Also decode subprocess_get_response results
---
koan/utils.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/koan/utils.py b/koan/utils.py
index 0e0a4ae..9e16182 100644
--- a/koan/utils.py
+++ b/koan/utils.py
@@ -177,8 +177,8 @@ def subprocess_get_response(cmd, ignore_rc=False, get_stderr=False):
if not ignore_rc and rc != 0:
raise InfoException("command failed (%s)" % rc)
if get_stderr:
- return rc, result, stderr_result
- return rc, result
+ return rc, result.decode(), stderr_result.decode()
+ return rc, result.decode()
def input_string_or_dict(options, delim=None, allow_multiples=True):
--
2.23.0