mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-06 07:21:38 +01:00
fix: ignore config.json for service config
This commit is contained in:
@@ -313,7 +313,7 @@ def create_app():
|
||||
elif os.path.isdir(app.config["JSON_CONFIG_DIR"]):
|
||||
for fname in os.listdir(app.config["JSON_CONFIG_DIR"]):
|
||||
fullpath = os.path.join(app.config["JSON_CONFIG_DIR"], fname)
|
||||
if fname.endswith(".json"):
|
||||
if fname.endswith(".json") and not fname == "config.json":
|
||||
with open(fullpath) as f:
|
||||
config |= json.load(f)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user