Skip to content
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

Add suppress_stderr argument to hooks #3770

Open
1 task done
paololazzari opened this issue Jan 16, 2025 · 0 comments · May be fixed by #3771
Open
1 task done

Add suppress_stderr argument to hooks #3770

paololazzari opened this issue Jan 16, 2025 · 0 comments · May be fixed by #3771
Labels
enhancement New feature or request

Comments

@paololazzari
Copy link

paololazzari commented Jan 16, 2025

Describe the enhancement

Given that currently there is a suppress_stdout argument, it makes sense to add a suppress_stderr argument as well.
Example usage:

terraform {
  after_hook "after_hook" {
    commands     = ["plan"]
    execute      = ["./hook.sh"]
    run_on_error = true
    suppress_stdout = true
    suppress_stderr = true
  }
}

I am happy to help implement this.

RFC Not Needed

  • I have evaluated the complexity of this enhancement, and I believe it does not require an RFC.
@paololazzari paololazzari added the enhancement New feature or request label Jan 16, 2025
@paololazzari paololazzari linked a pull request Jan 16, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant