Skip to content

Commit

Permalink
replace cluster device_id by id
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Aug 27, 2024
1 parent 3be227b commit 16250f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/resources/device_gateway_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ resource "mist_device_gateway_cluster" "cluster_one" {

### Read-Only

- `device_id` (String)
- `id` (String) The ID of this resource.

<a id="nestedatt--nodes"></a>
### Nested Schema for `nodes`
Expand Down
4 changes: 2 additions & 2 deletions internal/resource_device_gateway_cluster/sdk_to_terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func SdkToTerraform(ctx context.Context, siteId uuid.UUID, deviceId uuid.UUID, d
var state DeviceGatewayClusterModel
var diags diag.Diagnostics

var device_id types.String = types.StringValue(deviceId.String())
var id types.String = types.StringValue(deviceId.String())
var nodes types.List = types.ListNull(NodesValue{}.Type(ctx))
var site_id types.String = types.StringValue(siteId.String())

Expand All @@ -38,7 +38,7 @@ func SdkToTerraform(ctx context.Context, siteId uuid.UUID, deviceId uuid.UUID, d
nodes, e := types.ListValueFrom(ctx, data_list_type, nodes_list)
diags.Append(e...)

state.DeviceId = device_id
state.Id = id
state.Nodes = nodes
state.SiteId = site_id

Expand Down

0 comments on commit 16250f3

Please sign in to comment.