From ad8cf1319f1edcaa185402c0916f1fd320069eb0 Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Mon, 29 Feb 2016 18:56:05 +0100 Subject: [PATCH] Small refactoring in commandline call to check ptr --- management/status_checks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/management/status_checks.py b/management/status_checks.py index 323de29d..1702ca8c 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -945,9 +945,8 @@ if __name__ == "__main__": # Run only the primary hostname checks, specifically the ptr check shell('check_call', ["/usr/sbin/rndc", "flush"], trap=True) output = ConsoleOutput() - domain=env["PRIMARY_HOSTNAME"] my_ips = env['PUBLIC_IP'] + ((" / "+env['PUBLIC_IPV6']) if env.get("PUBLIC_IPV6") else "") - check_reverse_dns(domain, my_ips, output, env) + check_reverse_dns(env["PRIMARY_HOSTNAME"], my_ips, output, env) elif sys.argv[1] == "--check-primary-hostname": # See if the primary hostname appears resolvable and has a signed certificate.