Skip to content

Commit

Permalink
fix site_psks datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Aug 27, 2024
1 parent 257eb26 commit b9321ed
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/datasource_site_psks/sdk_to_terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (

"github.com/tmunzer/mistapi-go/mistapi/models"

mist_transform "github.com/Juniper/terraform-provider-mist/internal/commons/utils"

"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
Expand Down Expand Up @@ -38,7 +36,6 @@ func pskSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d models.Ps
var expiry_notification_time types.Int64
var id types.String
var mac types.String
var macs types.List = types.ListNull(types.StringType)
var name types.String
var note types.String
var notify_expiry types.Bool
Expand Down Expand Up @@ -67,9 +64,6 @@ func pskSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d models.Ps
if d.Mac != nil {
mac = types.StringValue(*d.Mac)
}
if d.Macs != nil {
macs = mist_transform.ListOfStringSdkToTerraform(ctx, d.Macs)
}

name = types.StringValue(d.Name)

Expand Down Expand Up @@ -114,7 +108,6 @@ func pskSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d models.Ps
"expiry_notification_time": expiry_notification_time,
"id": id,
"mac": mac,
"macs": macs,
"name": name,
"note": note,
"notify_expiry": notify_expiry,
Expand Down

0 comments on commit b9321ed

Please sign in to comment.