decode binary
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user