Skip to content

Commit

Permalink
Fix name getting set to empty on updates
Browse files Browse the repository at this point in the history
The name field was getting set to empty on changes to ha replicas. This fixes it the issue by using the previous known state for the name field on updates
  • Loading branch information
aaronblevy committed Nov 16, 2023
1 parent 1b57bf8 commit 60511b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/provider/service_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ The change has been taken into account but must still be propagated. You can run
Optional: true,
// If the name attribute is absent, the provider will generate a default.
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
},
"milli_cpu": schema.Int64Attribute{
MarkdownDescription: "Milli CPU",
Expand Down

0 comments on commit 60511b4

Please sign in to comment.