From 1d0ae2f4ed7f57690a46780e1d6fade90dd677e2 Mon Sep 17 00:00:00 2001 From: Michael Gruener Date: Mon, 21 Mar 2016 21:47:26 +0100 Subject: [PATCH] cloudflare_dns: Fix wrong variable name --- lib/ansible/modules/extras/network/cloudflare_dns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/network/cloudflare_dns.py b/lib/ansible/modules/extras/network/cloudflare_dns.py index a5d03ba5479..8772c2ac659 100644 --- a/lib/ansible/modules/extras/network/cloudflare_dns.py +++ b/lib/ansible/modules/extras/network/cloudflare_dns.py @@ -376,13 +376,13 @@ class CloudflareAPI(object): if params['type'] == 'SRV': search_value = str(params['weight']) + '\t' + str(params['port']) + '\t' + params['value'] search_record = params['service'] + '.' + params['proto'] + '.' + params['record'] - if solo: + if params['solo']: search_value = None records = self.get_dns_records(params['zone'],params['type'],search_record,search_value) for rr in records: - if solo: + if params['solo']: if not ((rr['type'] == params['type']) and (rr['name'] == params['record']) and (rr['content'] == params['value'])): self.changed = True if not self.module.check_mode: