From c3a7e3413b92f63b1c915615d47f7e6b712a8ad2 Mon Sep 17 00:00:00 2001 From: Marc Schiller Date: Tue, 9 Dec 2014 12:40:32 +0100 Subject: [PATCH] Fixed a small status check bug, where secondary dns server check fails misleadingly. --- management/status_checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/status_checks.py b/management/status_checks.py index e12221f..487c4a6 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -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: