Merge pull request #282 from m4rcs/master

Fix NS status check - should sort on both ends of the comparison
This commit is contained in:
Joshua Tauberer 2014-12-09 11:17:30 -05:00
commit 3bc5361491
1 changed files with 2 additions and 2 deletions

View File

@ -207,10 +207,10 @@ def check_dns_zone(domain, env, dns_zonefiles):
# to do a DNS trace.
custom_dns = get_custom_dns_config(env)
existing_ns = query_dns(domain, "NS")
correct_ns = "; ".join([
correct_ns = "; ".join(sorted([
"ns1." + env['PRIMARY_HOSTNAME'],
custom_dns.get("_secondary_nameserver", "ns2." + env['PRIMARY_HOSTNAME']),
])
]))
if existing_ns.lower() == correct_ns.lower():
env['out'].print_ok("Nameservers are set correctly at registrar. [%s]" % correct_ns)
else: