Removed some comments

This commit is contained in:
rune 2023-03-20 13:00:18 +01:00
parent 68331adc53
commit 9b17a3e685

View File

@ -388,10 +388,8 @@ def updateip(force):
# Only update domains with outdated IP's
if remoteIP4 != current_ip:
data = {'type': 'A', 'data': current_ip}
#print(domain_name, subdomain_id,current_ip,data)
headers = {'Authorization': 'Bearer ' + apikey, "Content-Type": "application/json"}
response = requests.patch('https://api.digitalocean.com/v2/domains/'+domain_name+'/records/' + subdomain_id, data=json.dumps(data), headers=headers)
# response = response.json()
if str(response) != '<Response [200]>':
logging.error(time.strftime("%Y-%m-%d %H:%M")+' - Error : ' + str(response.json))
else: