From be586e4006aeff3bdb41c2028c0ced28a0c8bf63 Mon Sep 17 00:00:00 2001 From: Brian Bustin Date: Wed, 1 Jul 2015 22:12:02 -0400 Subject: [PATCH] Fixed issue with domain tests caused by get_secondary_ns now returning a list. --- management/status_checks.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/management/status_checks.py b/management/status_checks.py index 61bd7d2d..cd92435e 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -370,12 +370,9 @@ def check_dns_zone(domain, env, output, dns_zonefiles): # the TLD, and so we're not actually checking the TLD. For that we'd need # to do a DNS trace. ip = query_dns(domain, "A") - secondary_ns = get_secondary_dns(get_custom_dns_config(env)) or "ns2." + env['PRIMARY_HOSTNAME'] + secondary_ns = get_secondary_dns(get_custom_dns_config(env)) or ["ns2." + env['PRIMARY_HOSTNAME']] existing_ns = query_dns(domain, "NS") - correct_ns = "; ".join(sorted([ - "ns1." + env['PRIMARY_HOSTNAME'], - secondary_ns, - ])) + correct_ns = "; ".join(sorted(["ns1." + env['PRIMARY_HOSTNAME']] + secondary_ns)) if existing_ns.lower() == correct_ns.lower(): output.print_ok("Nameservers are set correctly at registrar. [%s]" % correct_ns) elif ip == env['PUBLIC_IP']: