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
Reference: hashicorp/terraform-plugin-go#380
The next versions of the plugin protocol (5.5/6.5) include support for the CallFunction RPC and server capability. This change includes a modified implementation of the new RPC in all server implementations which accounts for returning a FunctionError rather than Diagnostics.
Detail: "A provider-defined function call was received by the provider, however the provider does not implement functions. "+
45
-
"Either upgrade the provider to a version that implements provider-defined functions or this is a bug in Terraform that should be reported to the Terraform maintainers.",
46
-
},
56
+
Error: &tfprotov5.FunctionError{
57
+
Text: "Provider Functions Not Implemented: A provider-defined function call was received by the provider, however the provider does not implement functions. "+
58
+
"Either upgrade the provider to a version that implements provider-defined functions or this is a bug in Terraform that should be reported to the Terraform maintainers.",
// Terraform to verify the mutex does not deadlock.
493
493
varwg sync.WaitGroup
494
494
495
-
expectedDiags:= []*tfprotov5.Diagnostic{
496
-
{
497
-
Severity: tfprotov5.DiagnosticSeverityError,
498
-
Summary: "Invalid Provider Server Combination",
499
-
Detail: "The combined provider has multiple implementations of the same function name across underlying providers. "+
500
-
"Functions must be implemented by only one underlying provider. "+
501
-
"This is always an issue in the provider implementation and should be reported to the provider developers.\n\n"+
502
-
"Duplicate function: test_function",
503
-
},
495
+
expectedError:=&tfprotov5.FunctionError{
496
+
Text: "Invalid Provider Server Combination: The combined provider has multiple implementations of the same function name across underlying providers. "+
497
+
"Functions must be implemented by only one underlying provider. "+
498
+
"This is always an issue in the provider implementation and should be reported to the provider developers.\n\n"+
// Terraform to verify the mutex does not deadlock.
640
636
varwg sync.WaitGroup
641
637
642
-
expectedDiags:= []*tfprotov5.Diagnostic{
643
-
{
644
-
Severity: tfprotov5.DiagnosticSeverityError,
645
-
Summary: "Invalid Provider Server Combination",
646
-
Detail: "The combined provider has multiple implementations of the same function name across underlying providers. "+
647
-
"Functions must be implemented by only one underlying provider. "+
648
-
"This is always an issue in the provider implementation and should be reported to the provider developers.\n\n"+
649
-
"Duplicate function: test_function",
650
-
},
638
+
expectedError:=&tfprotov5.FunctionError{
639
+
Text: "Invalid Provider Server Combination: The combined provider has multiple implementations of the same function name across underlying providers. "+
640
+
"Functions must be implemented by only one underlying provider. "+
641
+
"This is always an issue in the provider implementation and should be reported to the provider developers.\n\n"+
0 commit comments