@@ -170,16 +170,18 @@ func (model *MaintenanceWindowModel) _fromAPIResponse(ctx context.Context, respo
170170 Start : types .StringValue (response .Schedule .Custom .Start ),
171171 Duration : types .StringValue (response .Schedule .Custom .Duration ),
172172 Timezone : types .StringPointerValue (response .Schedule .Custom .Timezone ),
173- }
174-
175- if response .Schedule .Custom .Recurring != nil {
176- model .CustomSchedule .Recurring = & MaintenanceWindowScheduleRecurring {
177- End : types .StringPointerValue (response .Schedule .Custom .Recurring .End ),
178- Every : types .StringPointerValue (response .Schedule .Custom .Recurring .Every ),
173+ Recurring : & MaintenanceWindowScheduleRecurring {
174+ End : types .StringNull (),
175+ Every : types .StringNull (),
179176 OnWeekDay : types .ListNull (types .StringType ),
180177 OnMonth : types .ListNull (types .Int32Type ),
181178 OnMonthDay : types .ListNull (types .Int32Type ),
182- }
179+ },
180+ }
181+
182+ if response .Schedule .Custom .Recurring != nil {
183+ model .CustomSchedule .Recurring .End = types .StringPointerValue (response .Schedule .Custom .Recurring .End )
184+ model .CustomSchedule .Recurring .Every = types .StringPointerValue (response .Schedule .Custom .Recurring .Every )
183185
184186 if response .Schedule .Custom .Recurring .Occurrences != nil {
185187 occurrences := int32 (* response .Schedule .Custom .Recurring .Occurrences )
0 commit comments