File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,6 @@ import (
1515 "github.com/hashicorp/terraform-plugin-framework/resource"
1616)
1717
18- type ListResourceTypeNotFoundError struct {
19- TypeName string
20- }
21-
22- func (e * ListResourceTypeNotFoundError ) Error () string {
23- return "listResource Type Not Found: no listResource type named " + e .TypeName + " was found in the provider."
24- }
25-
26- func (e * ListResourceTypeNotFoundError ) Is (err error ) bool {
27- compatibleErr , ok := err .(* ListResourceTypeNotFoundError )
28- if ! ok {
29- return false
30- }
31-
32- return e .TypeName == compatibleErr .TypeName
33- }
34-
3518func (s * Server ) ListResourceType (ctx context.Context , typeName string ) (list.ListResource , diag.Diagnostics ) {
3619 listResourceFuncs , diags := s .ListResourceFuncs (ctx )
3720 listResourceFunc , ok := listResourceFuncs [typeName ]
You can’t perform that action at this time.
0 commit comments