From 24dfe024eae2b44b47ad7bb16cb2eb5035cff218 Mon Sep 17 00:00:00 2001 From: Calle Kabo Date: Wed, 30 Aug 2017 10:05:10 +1200 Subject: [PATCH] dnsmadeeasy: Change A and AAAA record checks to allow round robin setup (#28656) --- lib/ansible/modules/net_tools/dnsmadeeasy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/net_tools/dnsmadeeasy.py b/lib/ansible/modules/net_tools/dnsmadeeasy.py index fe00a76c6e..57bf8215bc 100644 --- a/lib/ansible/modules/net_tools/dnsmadeeasy.py +++ b/lib/ansible/modules/net_tools/dnsmadeeasy.py @@ -471,12 +471,12 @@ class DME2(object): if not self.all_records: 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: if result['name'] == record_name and result['type'] == record_type: return result 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: if record_type == "MX": value = record_value.split(" ")[1]