Skip to content

Commit

Permalink
🐛 use NewResource to load init functions in core provider (#2289)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock authored Oct 18, 2023
1 parent 3ed2de5 commit 29a6fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/core/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (s *Service) GetData(req *plugin.DataReq) (*plugin.DataRes, error) {
args := plugin.PrimitiveArgsToRawDataArgs(req.Args, runtime)

if req.ResourceId == "" && req.Field == "" {
res, err := resources.CreateResource(runtime, req.Resource, args)
res, err := resources.NewResource(runtime, req.Resource, args)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 29a6fdd

Please sign in to comment.