Improve changelog and docs message for nonsensitive function fixes. (#1055)

Signed-off-by: Jakub Martin <kubam@spacelift.io>
This commit is contained in:
Kuba Martin 2023-12-27 15:47:27 +01:00 committed by GitHub
parent 28e6bce155
commit 064f150047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -7,10 +7,10 @@ UPGRADE NOTES:
NEW FEATURES:
ENHANCEMENTS:
* `nonsensitive` function no longer returns error when applied to values that are not sensitive ([#369](https://github.com/opentofu/opentofu/pull/369))
BUG FIXES:
* `tofu test` resources cleanup at the end of tests changed to use simple reverse run block order. ([#1043](https://github.com/opentofu/opentofu/pull/1043))
* nonsensitive no longer produces error when applied to values that are not sensitive
## Previous Releases

View File

@ -73,10 +73,9 @@ due to an inappropriate call to `nonsensitive` in your module, that's a bug in
your module and not a bug in OpenTofu itself.
**Use this function sparingly and only with due care.**
`nonsensitive` will no longer return an error if you pass a value that isn't marked
as sensitive, even though such a call may be redundant and potentially confusing
or misleading to a future maintainer of your module. Use `nonsensitive` only
after careful consideration and with definite intent.
`nonsensitive` allows passing a value that isn't marked as sensitive,
even though such a call may be redundant and potentially confusing
or misleading to a future maintainer of your module.
Consider including a comment adjacent to your call to explain to future
maintainers what makes the usage safe and thus what invariants they must take