Commit da5a0752 authored by grisel-davy's avatar grisel-davy

check for regen

parent 2c9f5ede
......@@ -62,3 +62,10 @@ def reconfigure(api_client):
input("passer au suivant ?")
api_client.patch(service['home'], data={'need_regen': error}) # regen it if there is an error
for service in api_client.list("services/regen/"):
if service['hostname'] == client_hostname and \
service['service_name'] == 'dns' and \
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