Removed some comments
This commit is contained in:
parent
68331adc53
commit
9b17a3e685
2
ddns.py
2
ddns.py
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user