Skip to content
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

Conversation

froznsm
Copy link
Contributor

@froznsm froznsm commented Jun 29, 2023

SUMMARY

The datadog_downtime module includes the optional rrule 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 the rrule param was populated, the API would return a Bad Request with the response {'errors': ['Invalid recurrence type']}.

This change simply fixes this by adding the type when the param is present.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

datadog_downtime module

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type) labels Jun 29, 2023
Copy link
Collaborator

@felixfontein felixfontein left a 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!

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-6 labels Jun 29, 2023
@felixfontein
Copy link
Collaborator

If nobody objects, I'll merge this by the end of this week.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Jul 8, 2023
@felixfontein felixfontein merged commit fc74f9a into ansible-collections:main Jul 8, 2023
@patchback
Copy link

patchback bot commented Jul 8, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/fc74f9a4f20ae149b28518bc0992966e0ad7e915/pr-6811

Backported as #6890

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jul 8, 2023
…am is present (#6811)

* added 'type' to recurrence object when rrule param is present

* formatting cleanup

(cherry picked from commit fc74f9a)
@felixfontein
Copy link
Collaborator

@froznsm thanks for your contribution!

@patchback
Copy link

patchback bot commented Jul 8, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/fc74f9a4f20ae149b28518bc0992966e0ad7e915/pr-6811

Backported as #6891

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Jul 8, 2023
…am is present (#6811)

* added 'type' to recurrence object when rrule param is present

* formatting cleanup

(cherry picked from commit fc74f9a)
felixfontein pushed a commit that referenced this pull request Jul 8, 2023
…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]>
felixfontein pushed a commit that referenced this pull request Jul 8, 2023
…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]>
@froznsm froznsm deleted the datadog_downtimes_rrule_recurrence_type branch July 10, 2023 12:20
valeriopoggi pushed a commit to valeriopoggi/community.general that referenced this pull request Jul 17, 2023
…am is present (ansible-collections#6811)

* added 'type' to recurrence object when rrule param is present

* formatting cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants