From d8194e0d2cc27c426d1619a26eab5738e3a83fde Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Thu, 18 Jun 2020 22:28:17 +0200 Subject: treat both yes and yes (with quotes) in the config as True --- src/hourly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/hourly.py b/src/hourly.py index 26454ae..ca9fc2f 100755 --- a/src/hourly.py +++ b/src/hourly.py @@ -139,7 +139,7 @@ def get_available_subnetworks(count, address_ranges): def do_hourly_work(hour): ztdns_config = get_ztdns_config() - if ztdns_config['enabled'] != 'yes': + if ztdns_config['enabled'] not in ['yes', True]: log('0tdns not enabled in the config - exiting') return -- cgit v1.2.3