diff --git a/python_terraform/__init__.py b/python_terraform/__init__.py index e207be3..4e0ff7d 100644 --- a/python_terraform/__init__.py +++ b/python_terraform/__init__.py @@ -290,6 +290,11 @@ class Terraform(object): p = subprocess.Popen(cmds, stdout=stdout, stderr=stderr, cwd=working_folder, env=environ_vars) + + synchronous = kwargs.pop('synchronous', True) + if not synchronous: + return p, None, None + out, err = p.communicate() ret_code = p.returncode log.debug('output: {o}'.format(o=out))