decode binary

This commit is contained in:
2020-12-08 17:23:21 -05:00
parent ea8ef8efd1
commit 7ef6df05ca
+1 -1
View File
@@ -226,7 +226,7 @@ def createConnections(hosts):
def doexec(conn, data): def doexec(conn, data):
try: try:
ro = subprocess.check_output(data, stderr=subprocess.STDOUT, shell=True) ro = subprocess.check_output(data, stderr=subprocess.STDOUT, shell=True).decode()
fail = "OK" fail = "OK"
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
ro = str(e) ro = str(e)