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:
parent
bda8b97e59
commit
632b653b2b
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue