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>
merge-requests/1/head
Michal Widera 5 years ago
parent bda8b97e59
commit 632b653b2b

@ -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

Loading…
Cancel
Save