Commit b481e54
Aaron Sierra
dns: worldwidedns: Leverage "slot" ID from Record.id
The update_record() and delete_record() functions require a Record
instance in their respective argument lists to identify the DNS record
to manipulate. Record objects instantiated by this driver contain the
assocated "slot" ID within the .id field, so:
1. There is no need for the user to specify the "slot" ID via
.update_record(..., extra={"entry": ID}). However, since it was
previously required, an "entry" key will be accepted as long as it is
consistent with the Record instance.
2. There is no need for .delete_record() to search the Record's zone for
the "slot" ID of the Record.1 parent 30fd658 commit b481e54
1 file changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
| 440 | + | |
447 | 441 | | |
448 | 442 | | |
449 | 443 | | |
| |||
0 commit comments