Skip to content

Commit

Permalink
fix allow_ssdp in site_wlan and org_wlan
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Sep 4, 2024
1 parent 4ab4c78 commit 264e85a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions internal/datasource_org_webhooks/sdk_to_terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func SdkToTerraform(ctx context.Context, l *[]models.Webhook, elements *[]attr.V

return diags
}

func webhookSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.Webhook) OrgWebhooksValue {
var state OrgWebhooksValue

Expand Down
4 changes: 2 additions & 2 deletions internal/resource_org_wlan/terraform_to_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ func TerraformToSdk(ctx context.Context, plan *OrgWlanModel) (*models.Wlan, diag
data.AllowMdns = plan.AllowMdns.ValueBoolPointer()
}

if plan.AllowMdns.IsNull() || plan.AllowMdns.IsUnknown() {
if plan.AllowSsdp.IsNull() || plan.AllowSsdp.IsUnknown() {
unset["-allow_ssdp"] = ""
} else {
data.AllowMdns = plan.AllowMdns.ValueBoolPointer()
data.AllowSsdp = plan.AllowSsdp.ValueBoolPointer()
}

if plan.ApIds.IsNull() || plan.ApIds.IsUnknown() {
Expand Down
4 changes: 2 additions & 2 deletions internal/resource_site_wlan/terraform_to_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ func TerraformToSdk(ctx context.Context, plan *SiteWlanModel) (*models.Wlan, dia
data.AllowMdns = plan.AllowMdns.ValueBoolPointer()
}

if plan.AllowMdns.IsNull() || plan.AllowMdns.IsUnknown() {
if plan.AllowSsdp.IsNull() || plan.AllowSsdp.IsUnknown() {
unset["-allow_ssdp"] = ""
} else {
data.AllowMdns = plan.AllowMdns.ValueBoolPointer()
data.AllowSsdp = plan.AllowSsdp.ValueBoolPointer()
}

if plan.ApIds.IsNull() || plan.ApIds.IsUnknown() {
Expand Down

1 comment on commit 264e85a

@tmunzer
Copy link
Collaborator Author

@tmunzer tmunzer commented on 264e85a Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix for #14

Please sign in to comment.