From 2f7d01c8e729ff07521b2ccccf2ddccf78564e0d Mon Sep 17 00:00:00 2001 From: redxef Date: Tue, 16 Jan 2024 21:24:35 +0100 Subject: [PATCH] Remove None on subdomain, to use the zone, just use an empty string. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c7cf46b..63681c0 100755 --- a/main.py +++ b/main.py @@ -23,7 +23,7 @@ config_schema = Schema({ 'endpoint': Use(str), }, 'zone': Use(str), - Optional('subdomain', default=None): Use(lambda s: str(s) if s is not None else None), + Optional('subdomain', default=''): Use(str), Optional('field_type', default='A'): And(Use(str), Use(str.upper), dns.rdatatype.RdataType.make), Optional('logging', default={'level': ':WARNING,ovhdns:INFO'}): { Optional('level', default=':WARNING,ovhdns:INFO'): Use(str),