From ea6ad1f1be6e506d4806155aca93224ab584e945 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 17 Dec 2018 18:04:10 +0100 Subject: [PATCH] Fix: Default value is None, not '' Signed-off-by: Knut Ahlers --- generateZonefiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generateZonefiles.py b/generateZonefiles.py index b1cbdd3..0bd1656 100644 --- a/generateZonefiles.py +++ b/generateZonefiles.py @@ -133,7 +133,7 @@ def write_zone(zone, ttl, soa, nameserver, mailserver, entries): def healthcheck(): - if os.getenv('HC_PING') != '': + if os.getenv('HC_PING') is not None: requests.get(os.getenv('HC_PING'))