stupid charlie, stupid
This commit is contained in:
parent
be31f657f6
commit
7cba2399e3
2 changed files with 3 additions and 3 deletions
4
main.py
4
main.py
|
@ -58,7 +58,7 @@ template_reverse = ("$TTL 2D\n"
|
||||||
"{ptr_records}\n")
|
"{ptr_records}\n")
|
||||||
|
|
||||||
def write_dns_files(api_client):
|
def write_dns_files(api_client):
|
||||||
for zone in api_client.view("dns/zones")['results']:
|
for zone in api_client.list("dns/zones"):
|
||||||
zone_name = zone['name'][1:]
|
zone_name = zone['name'][1:]
|
||||||
|
|
||||||
now = datetime.datetime.now(datetime.timezone.utc)
|
now = datetime.datetime.now(datetime.timezone.utc)
|
||||||
|
@ -159,7 +159,7 @@ api_client = Re2oAPIClient(api_hostname, api_username, api_password)
|
||||||
|
|
||||||
client_hostname = socket.gethostname().split('.', 1)[0]
|
client_hostname = socket.gethostname().split('.', 1)[0]
|
||||||
|
|
||||||
for service in api_client.view("services/regen/")['results']:
|
for service in api_client.list("services/regen/"):
|
||||||
# if service['hostname'] == client_hostname and \
|
# if service['hostname'] == client_hostname and \
|
||||||
# service['service_name'] == 'dns' and \
|
# service['service_name'] == 'dns' and \
|
||||||
# service['need_regen']:
|
# service['need_regen']:
|
||||||
|
|
2
re2oapi
2
re2oapi
|
@ -1 +1 @@
|
||||||
Subproject commit b0885f7b84245fa22ccb1b91c00d03675c1cfafc
|
Subproject commit 6565b92f3bfc13d02b95888ae021f5bd6f7ef317
|
Loading…
Add table
Add a link
Reference in a new issue