Default to 60 seconds ttl if it is None.
This commit is contained in:
parent
2f7d01c8e7
commit
8d39d149ec
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -28,7 +28,7 @@ config_schema = Schema({
|
|||
Optional('logging', default={'level': ':WARNING,ovhdns:INFO'}): {
|
||||
Optional('level', default=':WARNING,ovhdns:INFO'): Use(str),
|
||||
},
|
||||
Optional('ttl', default=60): Use(lambda i: int(i) if i is not None else None),
|
||||
Optional('ttl', default=60): Use(lambda i: int(i) if i is not None else 60),
|
||||
})
|
||||
|
||||
def get_opendns_ips():
|
||||
|
|
Loading…
Reference in a new issue