Skip to content

Commit f581df9

Browse files
author
Spikeophant
authored
Revert "Pop "synchronous" flag before it affects actual terraform command"
1 parent c25a3d2 commit f581df9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python_terraform/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,6 @@ def cmd(self, cmd, *args, **kwargs):
273273
"""
274274
capture_output = kwargs.pop('capture_output', True)
275275
raise_on_error = kwargs.pop('raise_on_error', False)
276-
synchronous = kwargs.pop('synchronous', True)
277-
278276
if capture_output is True:
279277
stderr = subprocess.PIPE
280278
stdout = subprocess.PIPE
@@ -294,6 +292,7 @@ def cmd(self, cmd, *args, **kwargs):
294292
p = subprocess.Popen(cmds, stdout=stdout, stderr=stderr,
295293
cwd=working_folder, env=environ_vars)
296294

295+
synchronous = kwargs.pop('synchronous', True)
297296
if not synchronous:
298297
return p, None, None
299298

0 commit comments

Comments
 (0)