Ensure we're using UTF-8 on the remote python calls

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2022-10-06 21:51:45 +01:00 committed by Megan Wilhite
parent 9cb8f15809
commit 8d961e9299

View file

@ -786,6 +786,9 @@ class VM:
):
if not self.is_running:
self.ctx.exit(1, message=f"{self!r} is not running")
if env is None:
env = []
env.append("PYTHONUTF8=1")
self.write_ssh_config()
stdout: TextIO | int
stderr: TextIO | int