From c97030cc445994e01e544ff0b0bbe4c61b178105 Mon Sep 17 00:00:00 2001 From: markocelan Date: Fri, 22 Dec 2017 08:00:35 +0100 Subject: [PATCH] cloudflare: fix CNAME not changed (#33939) --- lib/ansible/modules/net_tools/cloudflare_dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/net_tools/cloudflare_dns.py b/lib/ansible/modules/net_tools/cloudflare_dns.py index d26f01508d8..41c094c4de3 100644 --- a/lib/ansible/modules/net_tools/cloudflare_dns.py +++ b/lib/ansible/modules/net_tools/cloudflare_dns.py @@ -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: