Skip to content

Commit

Permalink
Fixed NSG issue (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
unasra authored Jul 16, 2024
1 parent 6f4abcb commit 18c949a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions internal/service/dns_config/api_auth_zone_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,19 +984,19 @@ resource "bloxone_dns_auth_zone" "test_notify" {
func testAccAuthZoneNsgs(fqdn, primaryType, nsgs string) string {
return fmt.Sprintf(`
resource "bloxone_dns_auth_nsg" "one"{
name = %q
name = "one"
}
resource "bloxone_dns_auth_nsg" "two"{
name = %q
name = "two"
}
resource "bloxone_dns_auth_zone" "test_nsgs" {
fqdn = %q
primary_type = %q
nsgs = [%s.id]
}
`, acctest.RandomNameWithPrefix("auth-nsg"), acctest.RandomNameWithPrefix("auth-nsg"), fqdn, primaryType, nsgs)
`, fqdn, primaryType, nsgs)
}

func testAccAuthZoneTags(fqdn string, primaryType string, tags map[string]string) string {
Expand Down
4 changes: 0 additions & 4 deletions internal/service/dns_config/model_config_auth_zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
Expand Down Expand Up @@ -196,9 +195,6 @@ var ConfigAuthZoneResourceSchemaAttributes = map[string]schema.Attribute{
ElementType: types.StringType,
Optional: true,
MarkdownDescription: `The resource identifier.`,
PlanModifiers: []planmodifier.List{
listplanmodifier.RequiresReplaceIfConfigured(),
},
},
"parent": schema.StringAttribute{
Computed: true,
Expand Down

0 comments on commit 18c949a

Please sign in to comment.