#908: Trying to fix a bug when obteining execution outputs.
parent
3c08c36716
commit
53f167e585
|
@ -223,7 +223,8 @@ def exec_command(cmd):
|
||||||
logger.debug("ERROR EXEC COMMAND: {}".format(str(e)))
|
logger.debug("ERROR EXEC COMMAND: {}".format(str(e)))
|
||||||
|
|
||||||
stat = proc.returncode
|
stat = proc.returncode
|
||||||
return stat, out, err
|
return stat, out.decode(chardet.detect(out)['encoding']).encode('utf8'),\
|
||||||
|
err.decode(chardet.detect(err)['encoding']).encode('utf8')
|
||||||
|
|
||||||
|
|
||||||
def get_hardware():
|
def get_hardware():
|
||||||
|
|
Loading…
Reference in New Issue