mirror of https://github.com/hashicorp/terraform
cli: Remove error on empty outputs when `-json` is set (#11721)
- Fixes #11696 - This changes makes `terraform output -json` return '{}' instead of throwing an error about "no outputs defined" - If `-json` is not set, the user will receive an error as before - This UX helps new users to understand how outputs are used - Allows for easier automation of TF CLI as an empty set of outputs is usually acceptable, but any other error from `output` would be re-raised to the user.pull/18296/head
parent
21fe540a4f
commit
26b907387d
Loading…
Reference in new issue