Skip to content

Commit

Permalink
Merge pull request #242 from alrayyes/chore/fix-name
Browse files Browse the repository at this point in the history
refactor: fix data source name
  • Loading branch information
alrayyes authored Dec 30, 2024
2 parents 8dd1bc3 + 075fb9d commit d48902d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/provider/dns/resource_record_sets_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

var (
_ datasource.DataSourceWithConfigure = &resourceRecordSet{}
_ datasource.DataSourceWithConfigure = &resourceRecordsSetsDataSource{}
)

type resourceRecordSetsDataSourceModel struct {
Expand All @@ -29,11 +29,11 @@ type resourceRecordSetDataSourceModel struct {
TTL types.Int32 `tfsdk:"ttl"`
}

type resourceRecordSet struct {
type resourceRecordsSetsDataSource struct {
utils.DataSourceAPI
}

func (r *resourceRecordSet) Schema(
func (r *resourceRecordsSetsDataSource) Schema(
_ context.Context,
_ datasource.SchemaRequest,
response *datasource.SchemaResponse,
Expand Down Expand Up @@ -81,7 +81,7 @@ func (r *resourceRecordSet) Schema(
}
}

func (r *resourceRecordSet) Read(
func (r *resourceRecordsSetsDataSource) Read(
ctx context.Context,
request datasource.ReadRequest,
response *datasource.ReadResponse,
Expand Down Expand Up @@ -124,7 +124,7 @@ func (r *resourceRecordSet) Read(
}

func NewResourceRecordSetsDataSource() datasource.DataSource {
return &resourceRecordSet{
return &resourceRecordsSetsDataSource{
DataSourceAPI: utils.DataSourceAPI{
Name: "dns_resource_record_sets",
},
Expand Down

0 comments on commit d48902d

Please sign in to comment.