Commit f36903a5 authored by Romain Courteaud's avatar Romain Courteaud

Default conf value

parent 23bef989
......@@ -28,6 +28,11 @@ def createConfiguration(
config[CONFIG_SECTION]["NAMESERVER"] = "\n".join(
get_default_resolver().nameservers
)
if "DOMAIN" not in config[CONFIG_SECTION]:
config[CONFIG_SECTION]["DOMAIN"] = ""
if "URL" not in config[CONFIG_SECTION]:
config[CONFIG_SECTION]["URL"] = ""
if "FORMAT" not in config[CONFIG_SECTION]:
config[CONFIG_SECTION]["FORMAT"] = "json"
if "TIMEOUT" not in config[CONFIG_SECTION]:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment