From 6be8ae1e4b1986179dc3fa6c855dec20d5db1bae Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Sat, 22 May 2021 18:47:37 +0200 Subject: [PATCH] correct use of Pyhton Booleans --- management/dns_update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/dns_update.py b/management/dns_update.py index 49752516..3429db3f 100755 --- a/management/dns_update.py +++ b/management/dns_update.py @@ -150,12 +150,12 @@ def build_zone(domain, all_domains, additional_records, www_redirect_domains, en secondary_ns_list = get_secondary_dns(additional_records, mode="NS") # Need at least two nameservers in the secondary dns list - useHiddenMaster = false + useHiddenMaster = False if os.path.exists("/etc/usehiddenmasterdns") and len(secondary_ns_list) > 1: with open("/etc/usehiddenmasterdns") as f: for line in f: if line == domain or line == "usehiddenmasterdns": - useHiddenMaster = true + useHiddenMaster = True break if not useHiddenMaster: