Remove None on subdomain, to use the zone, just use an empty string.

This commit is contained in:
redxef 2024-01-16 21:24:35 +01:00
parent 996d04fec0
commit 2f7d01c8e7
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -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),