Commit a872cd75 authored by Adrien Dorsaz's avatar Adrien Dorsaz

config_factory: check key is in directory before trying to delete it

parent 96e2ab22
Pipeline #265 failed with stages
in 6 minutes and 42 seconds
...@@ -38,7 +38,7 @@ def generate_config(): ...@@ -38,7 +38,7 @@ def generate_config():
parser["acmednstiny"]["ACMEDirectory"] = ACMEDIRECTORY parser["acmednstiny"]["ACMEDirectory"] = ACMEDIRECTORY
parser["acmednstiny"]["Contacts"] = "mailto:{0}".format(CONTACT) parser["acmednstiny"]["Contacts"] = "mailto:{0}".format(CONTACT)
else: elif "Contacts" in parser:
del parser["acmednstiny"]["Contacts"] del parser["acmednstiny"]["Contacts"]
parser["TSIGKeyring"]["KeyName"] = TSIGKEYNAME parser["TSIGKeyring"]["KeyName"] = TSIGKEYNAME
parser["TSIGKeyring"]["KeyValue"] = TSIGKEYVALUE parser["TSIGKeyring"]["KeyValue"] = TSIGKEYVALUE
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