Default to 60 seconds ttl if it is None.

This commit is contained in:
redxef 2024-03-11 08:31:25 +01:00
parent 2f7d01c8e7
commit 8d39d149ec
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -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():