Fix subdomain validation.
This commit is contained in:
parent
2d9f02d373
commit
234e2c4bc8
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -23,7 +23,7 @@ config_schema = Schema({
|
||||||
'endpoint': Use(str),
|
'endpoint': Use(str),
|
||||||
},
|
},
|
||||||
'zone': Use(str),
|
'zone': Use(str),
|
||||||
Optional('subdomain'): Use(str),
|
Optional('subdomain', default=None): Use(lambda s: str(s) if s is not None else None),
|
||||||
Optional('field_type', default='A'): And(Use(str), Use(str.upper), dns.rdatatype.RdataType.make),
|
Optional('field_type', default='A'): And(Use(str), Use(str.upper), dns.rdatatype.RdataType.make),
|
||||||
Optional('logging', default={'level': ':WARNING,ovhdns:INFO'}): {
|
Optional('logging', default={'level': ':WARNING,ovhdns:INFO'}): {
|
||||||
Optional('level', default=':WARNING,ovhdns:INFO'): Use(str),
|
Optional('level', default=':WARNING,ovhdns:INFO'): Use(str),
|
||||||
|
|
Loading…
Reference in a new issue