mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
dnsmadeeasy: Change A and AAAA record checks to allow round robin setup (#28656)
This commit is contained in:
parent
ab18ae39a5
commit
24dfe024ea
1 changed files with 2 additions and 2 deletions
|
@ -471,12 +471,12 @@ class DME2(object):
|
||||||
if not self.all_records:
|
if not self.all_records:
|
||||||
self.all_records = self.getRecords()
|
self.all_records = self.getRecords()
|
||||||
|
|
||||||
if record_type in ["A", "AAAA", "CNAME", "ANAME", "HTTPRED", "PTR"]:
|
if record_type in ["CNAME", "ANAME", "HTTPRED", "PTR"]:
|
||||||
for result in self.all_records:
|
for result in self.all_records:
|
||||||
if result['name'] == record_name and result['type'] == record_type:
|
if result['name'] == record_name and result['type'] == record_type:
|
||||||
return result
|
return result
|
||||||
return False
|
return False
|
||||||
elif record_type in ["MX", "NS", "TXT", "SRV"]:
|
elif record_type in ["A", "AAAA", "MX", "NS", "TXT", "SRV"]:
|
||||||
for result in self.all_records:
|
for result in self.all_records:
|
||||||
if record_type == "MX":
|
if record_type == "MX":
|
||||||
value = record_value.split(" ")[1]
|
value = record_value.split(" ")[1]
|
||||||
|
|
Loading…
Reference in a new issue