-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stderr is empty #374
Comments
Just to check, are you on tfexec v0.18.1? There was a bug in this functionality in v0.18.0. |
yep, I've seen that issue and double checked the version, it's v0.18.1 |
and terraform version: |
Thank you for raising the issue. |
in my case it was easier to work with "os/exec" directly without terraform-exec |
Hi All,
I'm trying to get what terraform writes to stdout and stderr and wrote the following code:
I tried to test it on a terraform code that should fail when 'terraform init' executed:
if I run 'terraform init' in terminal I get the following in stdout:
and in stderr:
If I try to run terraform with terraform-exec I get stdout printed as expected, but stderr is empty. If I change
tf.SetStderr(stderr)
totf.SetStderr(os.Stderr)
then I can see stderr printed.Do I miss something or stderr can be written only to os.Stderr ?
The text was updated successfully, but these errors were encountered: