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")
|
||||
|
||||
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:]
|
||||
|
||||
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]
|
||||
|
||||
for service in api_client.view("services/regen/")['results']:
|
||||
for service in api_client.list("services/regen/"):
|
||||
# if service['hostname'] == client_hostname and \
|
||||
# service['service_name'] == 'dns' and \
|
||||
# service['need_regen']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue