clean
This commit is contained in:
parent
6cb57c6dbf
commit
a30efabbda
23
dyndomain
23
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:
|
||||
|
Loading…
Reference in New Issue
Block a user