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 28f16e0 commit f4522ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cloudflare_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def delete_record(record_id, zone_id):
}

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

def add_record(ip_addr, subdomain, zone_id):
# adds a DNS A record to the zone and
Expand Down
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# check domain_subdomain_ips
print(domain_to_zone_id)
print(domain_subdomain_ips)
print("printed both environment variables")
time.sleep(10)

# initialization of variables
Expand Down

0 comments on commit f4522ed

Please sign in to comment.