Merge "Fail with encoding problems as early as possible."

This commit is contained in:
Jenkins 2016-05-18 12:49:43 +00:00 committed by Gerrit Code Review
commit d20aa7afeb
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ class Driver(object):
logger.debug("Running local command: %s", command)
out.return_code, out.stdout, out.stderr = utils.execute(
command)
out.stdout = out.stdout.decode('utf-8')
out.output = out.stdout
except fabric.exceptions.NetworkError as e:
logger.error("NetworkError occured: %s", str(e))