diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/config.ini.example b/config.ini.example old mode 100644 new mode 100755 diff --git a/main.py b/main.py index 432c48b..985967a 100755 --- a/main.py +++ b/main.py @@ -43,8 +43,8 @@ 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'] == 'dhcp' and \ - # service['need_regen']: - regen_dhcp(api_client) - api_client.patch(service['api_url'], data={'need_regen': False}) + if service['hostname'] == client_hostname and \ + service['service_name'] == 'dhcp' and \ + service['need_regen']: + regen_dhcp(api_client) + api_client.patch(service['api_url'], data={'need_regen': False})