Fix for subprocess call for Robot Framework execution

This change modifies behavior of capture_output flag to work with
robot framework. When set to given parameter it'll set stderr and stdout
to None for subprocess command call.
This fixes problem with error: "UnsupportedOperation: fileno"

Signed-off-by: Michal Widera <michal.widera@idemia.com>
This commit is contained in:
Michal Widera 2019-11-07 11:00:59 +01:00
parent bda8b97e59
commit 632b653b2b

View file

@ -288,6 +288,9 @@ class Terraform(object):
if capture_output is True:
stderr = subprocess.PIPE
stdout = subprocess.PIPE
elif capture_output == "framework":
stderr = None
stdout = None
else:
stderr = sys.stderr
stdout = sys.stdout