mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 12:51:04 +00:00
cloudflare: fix CNAME not changed (#33939)
This commit is contained in:
@@ -575,7 +575,7 @@ class CloudflareAPI(object):
|
||||
if ('data' in new_record) and ('data' in cur_record):
|
||||
if (cur_record['data'] > new_record['data']) - (cur_record['data'] < new_record['data']):
|
||||
do_update = True
|
||||
if (type == 'CNAME') and (cur_record['content'] != new_record['content']):
|
||||
if (params['type'] == 'CNAME') and (cur_record['content'] != new_record['content']):
|
||||
do_update = True
|
||||
if do_update:
|
||||
if self.module.check_mode:
|
||||
|
||||
Reference in New Issue
Block a user