Module: check_mk
Branch: master
Commit: ec3cb4989f00863d02c967e5c40388ade0c2a069
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ec3cb4989f0086…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Apr 4 12:10:04 2018 +0200
Fixed typos.
Change-Id: I42f481517cbf576d4ae2b88005d0f1f3409eafac
---
cmk/ec/main.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmk/ec/main.py b/cmk/ec/main.py
index adc2217..a5a385a 100644
--- a/cmk/ec/main.py
+++ b/cmk/ec/main.py
@@ -2000,7 +2000,7 @@ class EventServer(ECServerThread):
self.rewrite_event(rule, event, ())
self._event_status.new_event(event)
log_event_history(self.settings, event, "COUNTFAILED")
- event_has_opened(self.settings, event_server, rule, event)
+ event_has_opened(self.settings, g_event_server, rule, event)
if rule.get("autodelete"):
event["phase"] = "closed"
log_event_history(self.settings, event, "AUTODELETE")
@@ -2251,7 +2251,7 @@ class EventServer(ECServerThread):
existing_event["delay_until"] = time.time() +
rule["delay"]
existing_event["phase"] = "delayed"
else:
- event_has_opened(self.settings, event_server, rule,
existing_event)
+ event_has_opened(self.settings, g_event_server, rule,
existing_event)
log_event_history(self.settings, existing_event,
"COUNTREACHED")
@@ -2273,7 +2273,7 @@ class EventServer(ECServerThread):
if self.new_event_respecting_limits(event):
if event["phase"] == "open":
- event_has_opened(self.settings, event_server, rule,
event)
+ event_has_opened(self.settings, g_event_server, rule,
event)
if rule.get("autodelete"):
event["phase"] = "closed"
log_event_history(self.settings, event,
"AUTODELETE")