mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-06 07:21:38 +01:00
change: create host last in create_app
This commit is contained in:
@@ -317,9 +317,6 @@ def create_app():
|
||||
with open(fullpath) as f:
|
||||
config |= json.load(f)
|
||||
|
||||
# create dummy host #
|
||||
icingatools.create_master_host(app)
|
||||
|
||||
if not config:
|
||||
print("No valid configuration found - need at least one service")
|
||||
return
|
||||
@@ -331,6 +328,9 @@ def create_app():
|
||||
staticly_configured=staticly_configured, timeout=timeout,
|
||||
owner=config[key]["owner"]))
|
||||
db.session.commit()
|
||||
|
||||
# create dummy host #
|
||||
icingatools.create_master_host(app)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user