Skip to content

Commit

Permalink
omit start field if its an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzou committed Jan 24, 2024
1 parent e5f0374 commit 1204c8d
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 1204c8d

Please sign in to comment.