File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 9
9
10
10
fleetapi "github.com/elastic/terraform-provider-elasticstack/generated/fleet"
11
11
fwdiag "github.com/hashicorp/terraform-plugin-framework/diag"
12
- "github.com/hashicorp/terraform-plugin-sdk/v2/diag"
13
12
)
14
13
15
14
var (
@@ -435,16 +434,6 @@ func fromErr(err error) fwdiag.Diagnostics {
435
434
}
436
435
}
437
436
438
- func reportUnknownError (statusCode int , body []byte ) diag.Diagnostics {
439
- return diag.Diagnostics {
440
- diag.Diagnostic {
441
- Severity : diag .Error ,
442
- Summary : fmt .Sprintf ("Unexpected status code from server: got HTTP %d" , statusCode ),
443
- Detail : string (body ),
444
- },
445
- }
446
- }
447
-
448
437
func reportUnknownErrorFw (statusCode int , body []byte ) fwdiag.Diagnostics {
449
438
return fwdiag.Diagnostics {
450
439
fwdiag .NewErrorDiagnostic (
You can’t perform that action at this time.
0 commit comments