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'))