Skip to content

Commit

Permalink
fix: custom plan modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
wai-wong-edb committed Aug 19, 2024
1 parent 4b97360 commit c165509
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/provider/resource_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ func (c *clusterResource) Schema(ctx context.Context, req resource.SchemaRequest
},
},
PlanModifiers: []planmodifier.Set{
setplanmodifier.UseStateForUnknown(),
plan_modifier.CustomAssignTags(),
},
},
"transparent_data_encryption": schema.SingleNestedAttribute{
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/resource_pgd.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func PgdSchema(ctx context.Context) schema.Schema {
},
},
PlanModifiers: []planmodifier.Set{
setplanmodifier.UseStateForUnknown(),
plan_modifier.CustomAssignTags(),
},
},
"data_groups": schema.ListNestedAttribute{
Expand Down
3 changes: 2 additions & 1 deletion pkg/provider/resource_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/EnterpriseDB/terraform-provider-biganimal/pkg/api"
"github.com/EnterpriseDB/terraform-provider-biganimal/pkg/models"
commonTerraform "github.com/EnterpriseDB/terraform-provider-biganimal/pkg/models/common/terraform"
"github.com/EnterpriseDB/terraform-provider-biganimal/pkg/plan_modifier"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier"
Expand Down Expand Up @@ -123,7 +124,7 @@ func (p projectResource) Schema(ctx context.Context, req resource.SchemaRequest,
},
},
PlanModifiers: []planmodifier.Set{
setplanmodifier.UseStateForUnknown(),
plan_modifier.CustomAssignTags(),
},
},
},
Expand Down

0 comments on commit c165509

Please sign in to comment.