Skip to content

Commit c228301

Browse files
committed
Overwrite RETL model resource schedule values even if null
1 parent 29ec6df commit c228301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/reverse_etl_model_resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ func (r *reverseETLModelResource) Read(ctx context.Context, req resource.ReadReq
187187
}
188188

189189
// Since we deprecated these values, we just need to set them to the plan values so there are no errors
190-
if !previousState.ScheduleConfig.IsNull() && !previousState.ScheduleConfig.IsUnknown() {
190+
if !previousState.ScheduleConfig.IsUnknown() {
191191
resp.State.SetAttribute(ctx, path.Root("schedule_config"), previousState.ScheduleConfig)
192192
}
193-
if !previousState.ScheduleStrategy.IsNull() && !previousState.ScheduleStrategy.IsUnknown() {
193+
if !previousState.ScheduleStrategy.IsUnknown() {
194194
resp.State.SetAttribute(ctx, path.Root("schedule_strategy"), previousState.ScheduleStrategy)
195195
}
196196
}

0 commit comments

Comments
 (0)