Fixed a small status check bug, where secondary dns server check fails misleadingly.

This commit is contained in:
Marc Schiller 2014-12-09 12:40:32 +01:00
parent d390bfb215
commit c3a7e3413b
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: