cloudflare: fix CNAME not changed (#33939)

This commit is contained in:
markocelan 2017-12-22 08:00:35 +01:00 committed by René Moser
parent fcd3db27f9
commit c97030cc44

View file

@ -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: