You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Sprintf("An unexpected error was encountered converting a %s to its equivalent Terraform representation. This is always a bug in the provider.\n\nError: %s", req.AttributeConfig.Type(ctx), err),
fmt.Sprintf("An unexpected error was encountered converting a %s to its equivalent Terraform representation. This is always a bug in the provider.\n\nError: %s", req.AttributeConfig.Type(ctx), err),
fmt.Sprintf("An unexpected error was encountered converting a %s to its equivalent Terraform representation. This is always a bug in the provider.\n\nError: %s", req.AttributeState.Type(ctx), err),
353
-
)
354
-
return
355
-
}
356
-
357
332
// if we have no state value, there's nothing to preserve
fmt.Sprintf("An unexpected error was encountered converting a %s to its equivalent Terraform representation. This is always a bug in the provider.\n\nError: %s", resp.AttributePlan.Type(ctx), err),
367
-
)
333
+
ifreq.AttributeState.IsNull() {
368
334
return
369
335
}
370
336
371
-
// if it's not planned to be the unknown value, stick with
fmt.Sprintf("An unexpected error was encountered converting a %s to its equivalent Terraform representation. This is always a bug in the provider.\n\nError: %s", req.AttributeConfig.Type(ctx), err),
382
-
)
337
+
// if it's not planned to be the unknown value, stick with the concrete plan
338
+
if!resp.AttributePlan.IsUnknown() {
383
339
return
384
340
}
385
341
386
-
// if the config is the unknown value, use the unknown value
387
-
// otherwise, interpolation gets messed up
388
-
if!val.IsKnown() {
342
+
// if the config is the unknown value, use the unknown value otherwise, interpolation gets messed up
0 commit comments