-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[datadog_downtime] - added 'type' to recurrence object when rrule param is present #6811
[datadog_downtime] - added 'type' to recurrence object when rrule param is present #6811
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
If nobody objects, I'll merge this by the end of this week. |
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #6890 🤖 @patchback |
@froznsm thanks for your contribution! |
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6891 🤖 @patchback |
…pe' to recurrence object when rrule param is present (#6890) [datadog_downtime] - added 'type' to recurrence object when rrule param is present (#6811) * added 'type' to recurrence object when rrule param is present * formatting cleanup (cherry picked from commit fc74f9a) Co-authored-by: Simon Keil <[email protected]>
…pe' to recurrence object when rrule param is present (#6891) [datadog_downtime] - added 'type' to recurrence object when rrule param is present (#6811) * added 'type' to recurrence object when rrule param is present * formatting cleanup (cherry picked from commit fc74f9a) Co-authored-by: Simon Keil <[email protected]>
…am is present (ansible-collections#6811) * added 'type' to recurrence object when rrule param is present * formatting cleanup
SUMMARY
The
datadog_downtime
module includes the optionalrrule
parameter to provide the recurrence for a downtime in the rrule-format. The datadog api client that the module is based on requires that the recurrence type is set as "rrule", which was not done in the module thus far. Whenever therrule
param was populated, the API would return aBad Request
with the response{'errors': ['Invalid recurrence type']}
.This change simply fixes this by adding the type when the param is present.
ISSUE TYPE
COMPONENT NAME
datadog_downtime module