👌 IMPROVE: allow specifying the domain to update #2
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jeanclaude/DynDns#2
Loading…
Reference in New Issue
No description provided.
Delete Branch "jonas/DynDns:feature/allow-specifying-domain"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this allows DynDNS to be used against Hostpoint accounts with multiple domains
the domain to update is to be configured via the .env variable 'Domain'
I do not have multiple domains to test is, but it looks reasonable to me. I have only added a simgle comment which you may want to consider.
@ -30,0 +32,4 @@
for row in domainTableRows:
if os.environ.get('Domain') == row.find_element_by_class_name('domain-name-value').get_attribute('value'):
row.find_element_by_name('edit_dns').click()
logger.debug('domain found')
Logging that the domain was found is good, but logging when the domain was not found is probably even more important
you're right; guess we should log an error in that case and even terminate execution...
let me add that