-
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
cloudflare_dns
: add support for comment
and tags
#9132
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
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!
Hi @Sergio-IME Other than the comments already left by Felix, it looks good to me. Cheers, AZ PS: "IME" as in "IME-USP" ? |
Hi
last commits address the changes, not sure why they aren't detected as outdated hmm
no, not related 🙂 |
If nobody objects, I'll merge this at the end of this week! |
@@ -826,6 +876,10 @@ def ensure_dns_record(self, **kwargs): | |||
do_update = True | |||
if (params['type'] == 'CNAME') and (cur_record['content'] != new_record['content']): | |||
do_update = True | |||
if cur_record['comment'] != new_record['comment']: | |||
do_update = True | |||
if sorted(cur_record['tags']) != sorted(new_record['tags']): |
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.
No particular preference, just a note that this could be also achieved by:
if sorted(cur_record['tags']) != sorted(new_record['tags']): | |
if set(cur_record['tags']) != set(new_record['tags']): |
Backport to stable-10: 💚 backport PR created✅ Backport PR branch: Backported as #9184 🤖 @patchback |
* `cloudflare_dns`: add support for `comment` and `tags` * `cloudflare_dns`: add return values for `comment`/`tags` fields * `cloudflare_dns`: fix return values samples * `cloudflare_dns`: changelog fragment formatting * `cloudflare_dns`: add missing `version_added` * `cloudflare_dns`: remove explicit `required: false` * `cloudflare_dns`: empty `comment` idempotency fix (cherry picked from commit 3c23ce4)
@Sergio-IME thanks for your contribution! |
… for `comment` and `tags` (#9184) `cloudflare_dns`: add support for `comment` and `tags` (#9132) * `cloudflare_dns`: add support for `comment` and `tags` * `cloudflare_dns`: add return values for `comment`/`tags` fields * `cloudflare_dns`: fix return values samples * `cloudflare_dns`: changelog fragment formatting * `cloudflare_dns`: add missing `version_added` * `cloudflare_dns`: remove explicit `required: false` * `cloudflare_dns`: empty `comment` idempotency fix (cherry picked from commit 3c23ce4) Co-authored-by: Sergio <[email protected]>
…ctions#9132) * `cloudflare_dns`: add support for `comment` and `tags` * `cloudflare_dns`: add return values for `comment`/`tags` fields * `cloudflare_dns`: fix return values samples * `cloudflare_dns`: changelog fragment formatting * `cloudflare_dns`: add missing `version_added` * `cloudflare_dns`: remove explicit `required: false` * `cloudflare_dns`: empty `comment` idempotency fix
SUMMARY
Add support for
comment
andtags
fields to Cloudflare DNS module as it's allowed by their API https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-create-dns-recordISSUE TYPE
COMPONENT NAME
cloudflare_dns
ADDITIONAL INFORMATION