Skip to content

Commit

Permalink
[datadog_monitor] Omit recurrence start field if its an empty string (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzou authored Jan 25, 2024
1 parent 0fb55df commit d4df828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datadog/resource_datadog_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func buildMonitorStruct(d utils.Resource) (*datadogV1.Monitor, *datadogV1.Monito
if rrule, ok := firstRecurrence["rrule"].(string); ok {
recurrence.SetRrule(rrule)
}
if start, ok := firstRecurrence["start"].(string); ok {
if start, ok := firstRecurrence["start"].(string); ok && start != "" {
recurrence.SetStart(start)
}
if timezone, ok := firstRecurrence["timezone"].(string); ok {
Expand Down

0 comments on commit d4df828

Please sign in to comment.