Revert "Revert change from put to patch for now"
This reverts commit 536a9ceaa1
.
This commit is contained in:
parent
536a9ceaa1
commit
56e144005b
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ def main():
|
||||||
if fullname in dns_names['A']:
|
if fullname in dns_names['A']:
|
||||||
new_dnsrecords = {"name": fullname, "type": "A", "content": ip_address_new}
|
new_dnsrecords = {"name": fullname, "type": "A", "content": ip_address_new}
|
||||||
print(f"Sending request {new_dnsrecords}")
|
print(f"Sending request {new_dnsrecords}")
|
||||||
r = cf.zones.dns_records.put(zone_id, dns_record_id, data=new_dnsrecords)
|
r = cf.zones.dns_records.patch(zone_id, dns_record_id, data=new_dnsrecords)
|
||||||
print(r)
|
print(r)
|
||||||
|
|
||||||
case '6':
|
case '6':
|
||||||
|
@ -84,7 +84,7 @@ def main():
|
||||||
if fullname in dns_names['AAAA']:
|
if fullname in dns_names['AAAA']:
|
||||||
new_dnsrecords = {"name": fullname, "type": "AAAA", "content": ip_address_new}
|
new_dnsrecords = {"name": fullname, "type": "AAAA", "content": ip_address_new}
|
||||||
print(f"Sending request {new_dnsrecords}")
|
print(f"Sending request {new_dnsrecords}")
|
||||||
r = cf.zones.dns_records.put(zone_id, dns_record_id, data=new_dnsrecords)
|
r = cf.zones.dns_records.patch(zone_id, dns_record_id, data=new_dnsrecords)
|
||||||
print(r)
|
print(r)
|
||||||
case 'skipping':
|
case 'skipping':
|
||||||
print("Done")
|
print("Done")
|
||||||
|
|
Loading…
Reference in a new issue