Skip to content

Commit

Permalink
Thruk: add disabled_backends field to filter out thruk backends via s…
Browse files Browse the repository at this point in the history
…ession cookies
  • Loading branch information
fermino authored and Henri Wahl committed Nov 30, 2023
1 parent 655ae6f commit a0b64f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Nagstamon/QUI/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5934,6 +5934,7 @@ def decoration_function(self, **kwargs):

# run through all input widgets and and apply defaults from config
for widget in self.window.__dict__:

if widget.startswith('input_'):
if widget.startswith('input_checkbox_'):
setting = widget.split('input_checkbox_')[1]
Expand Down
1 change: 1 addition & 0 deletions Nagstamon/Servers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def create_server(server=None):
# Thruk
new_server.disabled_backends = server.disabled_backends


# server's individual preparations for HTTP connections (for example cookie creation)
# is done in GetStatus() method of monitor
if server.enabled is True:
Expand Down

0 comments on commit a0b64f0

Please sign in to comment.