decode binary
This commit is contained in:
@@ -226,7 +226,7 @@ def createConnections(hosts):
|
||||
|
||||
def doexec(conn, data):
|
||||
try:
|
||||
ro = subprocess.check_output(data, stderr=subprocess.STDOUT, shell=True)
|
||||
ro = subprocess.check_output(data, stderr=subprocess.STDOUT, shell=True).decode()
|
||||
fail = "OK"
|
||||
except subprocess.CalledProcessError as e:
|
||||
ro = str(e)
|
||||
|
||||
Reference in New Issue
Block a user