This commit is contained in:
Gilles Grandou 2020-10-04 15:02:56 +02:00
parent 6cb57c6dbf
commit a30efabbda

View File

@ -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: