Fix incorrect direction of TestConformance

This commit is contained in:
Paul Tyng 2019-05-09 09:16:54 -04:00
parent 00cc5781ab
commit 15f7f8049f
No known key found for this signature in database
GPG Key ID: E518875D6C65835A
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ func (n *EvalDiff) Eval(ctx EvalContext) (interface{}, error) {
} }
plannedNewVal = resp.PlannedState plannedNewVal = resp.PlannedState
plannedPrivate = resp.PlannedPrivate plannedPrivate = resp.PlannedPrivate
for _, err := range schema.ImpliedType().TestConformance(plannedNewVal.Type()) { for _, err := range plannedNewVal.Type().TestConformance(schema.ImpliedType()) {
diags = diags.Append(tfdiags.Sourceless( diags = diags.Append(tfdiags.Sourceless(
tfdiags.Error, tfdiags.Error,
"Provider produced invalid plan", "Provider produced invalid plan",