Commit 4fcd0274 authored by Charlie Jacomme's avatar Charlie Jacomme

enable refresh

parent 7b37ae54
......@@ -308,10 +308,10 @@ api_client = Re2oAPIClient(api_hostname, api_username, api_password)
client_hostname = socket.gethostname().split('.', 1)[0]
#for service in api_client.list("services/regen/"):
# if service['hostname'] == client_hostname and \
# service['service_name'] == 'dns' and \
# service['need_regen']:
write_dns_files(api_client)
write_dns_reverse_file(api_client)
# api_client.patch(service['api_url'], data={'need_regen': False})
for service in api_client.list("services/regen/"):
if service['hostname'] == client_hostname and \
service['service_name'] == 'dns' and \
service['need_regen']:
write_dns_files(api_client)
write_dns_reverse_file(api_client)
api_client.patch(service['api_url'], data={'need_regen': False})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment