diff --git a/internal/framework/service/rulesets/resource.go b/internal/framework/service/rulesets/resource.go index 84902ef3dc..6de78078a0 100644 --- a/internal/framework/service/rulesets/resource.go +++ b/internal/framework/service/rulesets/resource.go @@ -623,9 +623,11 @@ func toRulesetResourceModel(ctx context.Context, zoneID, accountID basetypes.Str } if ruleResponse.ActionParameters.ServeStale != nil { - rule.ActionParameters[0].ServeStale = []*ActionParameterServeStaleModel{{ - DisableStaleWhileUpdating: types.BoolValue(*ruleResponse.ActionParameters.ServeStale.DisableStaleWhileUpdating), - }} + if ruleResponse.ActionParameters.ServeStale.DisableStaleWhileUpdating != nil { + rule.ActionParameters[0].ServeStale = []*ActionParameterServeStaleModel{{ + DisableStaleWhileUpdating: types.BoolValue(*ruleResponse.ActionParameters.ServeStale.DisableStaleWhileUpdating), + }} + } } if ruleResponse.ActionParameters.FromList != nil {