cloudflare_dns: Fix wrong variable name
This commit is contained in:
parent
1c94395a96
commit
1d0ae2f4ed
1 changed files with 2 additions and 2 deletions
|
@ -376,13 +376,13 @@ class CloudflareAPI(object):
|
||||||
if params['type'] == 'SRV':
|
if params['type'] == 'SRV':
|
||||||
search_value = str(params['weight']) + '\t' + str(params['port']) + '\t' + params['value']
|
search_value = str(params['weight']) + '\t' + str(params['port']) + '\t' + params['value']
|
||||||
search_record = params['service'] + '.' + params['proto'] + '.' + params['record']
|
search_record = params['service'] + '.' + params['proto'] + '.' + params['record']
|
||||||
if solo:
|
if params['solo']:
|
||||||
search_value = None
|
search_value = None
|
||||||
|
|
||||||
records = self.get_dns_records(params['zone'],params['type'],search_record,search_value)
|
records = self.get_dns_records(params['zone'],params['type'],search_record,search_value)
|
||||||
|
|
||||||
for rr in records:
|
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'])):
|
if not ((rr['type'] == params['type']) and (rr['name'] == params['record']) and (rr['content'] == params['value'])):
|
||||||
self.changed = True
|
self.changed = True
|
||||||
if not self.module.check_mode:
|
if not self.module.check_mode:
|
||||||
|
|
Loading…
Reference in a new issue