Module: check_mk
Branch: master
Commit: ab05798f43abed2604ac76face5bcede19faa361
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ab05798f43abed…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Apr 12 15:06:17 2017 +0200
Minor cleanup
Change-Id: I7b54778d9216addf37d96c6595bb1d2a5fcf0f4d
---
web/htdocs/wato.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index f07c15a..55e6ef5 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9321,10 +9321,9 @@ class ModeDistributedMonitoring(ModeSites):
secret = do_site_login(login_id, name, passwd)
site["secret"] = secret
save_sites(configured_sites)
- log_audit(None, "edit-site", _("Successfully logged into
remote site %s") % \
- html.render_tt(site["alias"]))
- return None, _("Successfully logged into remote site %s!") % \
- html.render_tt(site["alias"])
+ message = _("Successfully logged into remote site %s.") %
html.render_tt(site["alias"])
+ log_audit(None, "edit-site", message)
+ return None, message
except MKAutomationException, e:
error = _("Cannot connect to remote site: %s") % e