👌 IMPROVE: allow specifying the A records to update #3
Loading…
Reference in New Issue
No description provided.
Delete Branch "jonas/DynDns:feature/allow-specifying-records-to-update"
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?
As already discussed, using sets instead of lists is more efficient.
Somnething like this should work (I have not run it, so I am not sure if I got everything right):
@ -62,1 +45,3 @@
logger.info(f'Changed A records ip to {ip}')
recordRows = driver.find_element_by_id('dns-record-list').find_elements_by_class_name('b-record')
for recordToUpdate in os.environ.get('Records').split(','):
Add
.split(',').strip()
for the case that there are whitespaces surrounding the record (happens when defined asfirstRecord, secondRecord, ...
)@ -63,0 +47,4 @@
for recordToUpdate in os.environ.get('Records').split(','):
logger.debug(f'recordToUpdate: {recordToUpdate}')
for record in recordRows:
recordId = None
No need to declare
recordId
hereOh, the text above is not formatted properly. Here it is again:
As already discussed, using sets instead of lists is more efficient in this case.
Somnething like this should work (I have not run it, so I am not sure if I got everything right):
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.