Skip to content

Commit f301012

Browse files
committed
Apply UseStateForUnknown for hosts of database instances
1 parent 30eaaba commit f301012

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

linode/databasemysqlv2/framework_resource_schema.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,16 @@ var frameworkResourceSchema = schema.Schema{
153153
"host_primary": schema.StringAttribute{
154154
Description: "The primary host for the Managed Database.",
155155
Computed: true,
156+
PlanModifiers: []planmodifier.String{
157+
stringplanmodifier.UseStateForUnknown(),
158+
},
156159
},
157160
"host_secondary": schema.StringAttribute{
158161
Description: "The secondary/private host for the Managed Database.",
159162
Computed: true,
163+
PlanModifiers: []planmodifier.String{
164+
stringplanmodifier.UseStateForUnknown(),
165+
},
160166
},
161167
"members": schema.MapAttribute{
162168
ElementType: types.StringType,

linode/databasepostgresqlv2/framework_resource_schema.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,16 @@ var frameworkResourceSchema = schema.Schema{
155155
"host_primary": schema.StringAttribute{
156156
Description: "The primary host for the Managed Database.",
157157
Computed: true,
158+
PlanModifiers: []planmodifier.String{
159+
stringplanmodifier.UseStateForUnknown(),
160+
},
158161
},
159162
"host_secondary": schema.StringAttribute{
160163
Description: "The secondary/private host for the Managed Database.",
161164
Computed: true,
165+
PlanModifiers: []planmodifier.String{
166+
stringplanmodifier.UseStateForUnknown(),
167+
},
162168
},
163169
"members": schema.MapAttribute{
164170
ElementType: types.StringType,

0 commit comments

Comments
 (0)