From 183e5a0c18e7ecfeed3b4ce56d170e06b4783036 Mon Sep 17 00:00:00 2001 From: redxef Date: Tue, 16 Jan 2024 19:41:26 +0100 Subject: [PATCH] Make subdomain optional. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 3e23c2f..747956b 100755 --- a/main.py +++ b/main.py @@ -23,7 +23,7 @@ config_schema = Schema({ 'endpoint': Use(str), }, 'zone': Use(str), - 'subdomain': Use(str), + Optional('subdomain'): 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),