Merge pull request #18 from raquel-ucl/asynch

Return access to the subprocess so output can be handled as desired
merge-requests/1/head
beelit94 6 years ago committed by GitHub
commit e2b7bd4686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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))

Loading…
Cancel
Save