mirror of https://github.com/hashicorp/terraform
To avoid a massively-disruptive change to how EvalNode works, we're now "smuggling" warnings through the error return value for these, but this depends on all of the Eval machinery correctly handling this special case and continuing evaluation when only warnings are returned. Previous changes missed EvalSequence as a place where execution halts on error. Now it will accumulate diagnostics itself, aborting if any of them are error diagnostics, and then wrap its own result up in an error to be returned by the main Eval function, which already treats non-fatal errors as a special case, though now produces an explicit log message about that situation to make it easier to spot in trace logs. This also includes a more detailed warning message for the warning about provider input being disabled. While this warning should be removed before we release anyway, having this additional detail is helpful in debugging tests where it's being returned.pull/19086/head
parent
02a6657a71
commit
3ac6e575f1
Loading…
Reference in new issue