Skip to content

Commit cae5cf0

Browse files
committed
refactor
1 parent df1f650 commit cae5cf0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/provider/datasources/data_source_cluster.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (d *clusterDataSource) Read(
7373
req datasource.ReadRequest,
7474
resp *datasource.ReadResponse,
7575
) {
76-
var data models.ClusterDataSource
76+
var data models.Cluster
7777

7878
// Read Terraform configuration data into the model
7979
resp.Diagnostics.Append(req.Config.Get(ctx, &data)...)

internal/provider/models/cluster.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"github.com/hashicorp/terraform-plugin-framework/types"
1111
)
1212

13-
// ClusterDataSource describes the data source data model.
14-
type ClusterDataSource struct {
13+
// Cluster describes the resource data source data model.
14+
type Cluster struct {
1515
Id types.String `tfsdk:"id"`
1616
Name types.String `tfsdk:"name"`
1717
CloudProvider types.String `tfsdk:"cloud_provider"`
@@ -52,7 +52,7 @@ type NodePool struct {
5252
UpdatedAt types.String `tfsdk:"updated_at"`
5353
}
5454

55-
func (data *ClusterDataSource) ReadFromResponse(
55+
func (data *Cluster) ReadFromResponse(
5656
ctx context.Context,
5757
cluster *platform.Cluster,
5858
) diag.Diagnostics {

0 commit comments

Comments
 (0)