Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python_terraform/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class IsNotFlagged(TerraformFlag):
pass


CommandOutput = Tuple[Optional[int], Optional[str], Optional[str]]
CommandOutput = Tuple[Union[int, subprocess.Popen, None], Optional[str], Optional[str]]


class TerraformCommandError(subprocess.CalledProcessError):
Expand Down Expand Up @@ -342,7 +342,7 @@ def cmd(
)

if not synchronous:
return None, None, None
return p, None, None

out, err = p.communicate()
ret_code = p.returncode
Expand Down