Skip to content

Commit e21eb53

Browse files
committed
description-field-issue-fix
1 parent 1ee837f commit e21eb53

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

internal/provider/conditionsets/client.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ func (c *ConditionSetClient) Create(ctx context.Context, conditionSetType models
7575
}
7676

7777
conditionSetCreate := models.ConditionSetCreate{
78-
Key: conditionSetPlan.Key.ValueString(),
79-
Name: conditionSetPlan.Name.ValueString(),
80-
Type: &conditionSetType,
81-
Conditions: conditions,
78+
Key: conditionSetPlan.Key.ValueString(),
79+
Name: conditionSetPlan.Name.ValueString(),
80+
Description: conditionSetPlan.Description.ValueStringPointer(),
81+
Type: &conditionSetType,
82+
Conditions: conditions,
8283
}
8384

8485
if !conditionSetPlan.Resource.IsNull() {

internal/provider/conditionsets/resource.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ func (c *conditionSetResource) baseAttributes() map[string]schema.Attribute {
136136
MarkdownDescription: "an optional longer description of the set",
137137
Optional: true,
138138
Computed: true,
139+
PlanModifiers: []planmodifier.String{
140+
stringplanmodifier.UseStateForUnknown(),
141+
},
139142
},
140143
"conditions": schema.StringAttribute{
141144
MarkdownDescription: "a boolean expression that consists of multiple conditions, with and/or logic.",

0 commit comments

Comments
 (0)