aboutsummaryrefslogtreecommitdiff
path: root/rh/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'rh/utils.py')
-rw-r--r--rh/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rh/utils.py b/rh/utils.py
index b3ed338..eae7bcf 100644
--- a/rh/utils.py
+++ b/rh/utils.py
@@ -457,9 +457,9 @@ def run_command(cmd, error_message=None, redirect_stdout=False,
# Make sure output is returned as a string rather than bytes.
if cmd_result.output is not None:
- cmd_result.output = cmd_result.output.decode('utf-8', 'replace')
+ cmd_result.output = str(cmd_result.output.decode('utf-8', 'replace'))
if cmd_result.error is not None:
- cmd_result.error = cmd_result.error.decode('utf-8', 'replace')
+ cmd_result.error = str(cmd_result.error.decode('utf-8', 'replace'))
return cmd_result
# pylint: enable=redefined-builtin,input-builtin