diff --git a/python_terraform/__init__.py b/python_terraform/__init__.py index 35c6e3b..144a735 100644 --- a/python_terraform/__init__.py +++ b/python_terraform/__init__.py @@ -235,6 +235,11 @@ class Terraform(object): p = subprocess.Popen(cmd_string, stdout=stdout, stderr=stderr, shell=True, 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))