Skip to content

Commit

Permalink
Merge pull request #498 from Alignak-monitoring-contrib/notify-host-d…
Browse files Browse the repository at this point in the history
…elete

Notify Alignak with 'reload_configuration' when an realm / host is de…
  • Loading branch information
mohierf committed Apr 5, 2018
2 parents b60afa3 + a900b42 commit b90a799
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions alignak_backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,9 @@ def after_delete_realm(item):
}, False, False, **lookup)
g.updateRealm = False

# Notify Alignak
notify_alignak(notification='reload_configuration')


def after_delete_resource_realm():
"""
Expand Down Expand Up @@ -1377,6 +1380,9 @@ def after_delete_host(item):
"""
current_app.logger.debug("Deleted host: %s", item['name'])

# Notify Alignak
notify_alignak(notification='reload_configuration')


# Alignak
def pre_alignak_patch(updates, original):
Expand Down

0 comments on commit b90a799

Please sign in to comment.