From a30efabbda310aa05a6b04cb5235c17a9a3d9f8a Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Sun, 4 Oct 2020 15:02:56 +0200 Subject: [PATCH] clean --- dyndomain | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/dyndomain b/dyndomain index 463527e..0b99060 100755 --- a/dyndomain +++ b/dyndomain @@ -186,29 +186,6 @@ def write_zone_list(zone_filename, zone, update): json.dump(zone, jsonfile, indent=2, sort_keys=True) -#def make_delete_zone_list(zone_list, prev_zone_list): -# return make_update_zone_list(prev_zone_list, zone_list) -# -# -#def make_update_zone_list(zone_list, prev_zone_list): -# update_zone_list = [] -# for entry in zone_list: -# if not any(entry == x for x in prev_zone_list): -# update_zone_list.append(entry) -# return update_zone_list -# -# -# for host,typefield,target in zone_list: -# if not host in config: -# config[host] = {} -# if typefield in config[host]: -# config[host][typefield] += '\n'+target -# else: -# config[host][typefield] = target -# with open(zone_filename, 'w') as configfile: -# config.write(configfile) - - def log(msg): stamp = time.strftime("%Y-%m-%d %H:%M:%S") with open(log_filename, 'a') as logfile: