Skip to content

Commit

Permalink
message
Browse files Browse the repository at this point in the history
  • Loading branch information
Feinburger committed May 3, 2024
1 parent 8b35ef9 commit d5522fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cloudflare_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def delete_record(record_id, zone_id):
}

response = requests.request("DELETE", url, headers=headers).json()
print(response)
return response.get("success", False)
return response["success"]

def add_record(ip_addr, subdomain, zone_id):
# adds a DNS A record to the zone and
Expand Down
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
# check domain_subdomain_ips
print(domain_to_zone_id)
print(domain_subdomain_ips)

# this interval needs to be adjusted so that the previous pod in k8s is destroyed before the code below runs in the current pod
time.sleep(30)

# initialization of variables
Expand Down

0 comments on commit d5522fe

Please sign in to comment.