#908: Trying to fix a bug when obteining execution outputs.

oglive^2
Ramón M. Gómez 2019-05-23 14:29:08 +02:00
parent 3c08c36716
commit 53f167e585
1 changed files with 2 additions and 1 deletions

View File

@ -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():