mirror of https://github.com/hashicorp/terraform
The CheckPrior function results validation did not take into account unknown values, because unknown values were not originally allowed in the plugin protocol from which this check was adapted. The test is simple, in that we can just reverse the check which originally didn't allow this change in value. Provider function return values types are defined by the protocol, and should be validated at that call site. The CheckPrior code paths should only be used for the exact purpose of detecting invalid changes in the return value between successive phases of execution.pull/37810/head
parent
2e5b5dee5d
commit
2227441f7d
Loading…
Reference in new issue