Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: OpenTofu crash with unknown value (#50)
* OpenTofu (and only OpenTofu) passes zero values in place of unknowns when calling custom functions, and ignores the `AllowUnknownValues` parameter configuration. Besides being incorrect, misleading and resulting in unstable plans, this can also result in rogue nil pointers being embedded in custom function inputs and thus unexpected panics in the provider code. Amusingly the standard `v.IsNull()` function itself was triggering a nil-pointer deref 😭. We work around it by explicitly checking that all values aren't nil, but this is a temporary fix until the underlying issue can be resolved upstream in OpenTofu itself. Refs: #48
- Loading branch information