Module: check_mk
Branch: master
Commit: 4cd0aad7912ad040ef7b3492457b9fe94a8c43f9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4cd0aad7912ad0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 24 16:10:10 2017 +0100
Show "created host, ... go to discovery" message only for non ping hosts
Change-Id: I0107ec4941ac88189860d4de1555a61743689aba
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d538655..f559d55 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1473,7 +1473,7 @@ def action_edit_host(mode, hostname, is_cluster):
if mode != "edit": # new/clone
- if host.tag('agent') != 'ping':
+ if "ping" not in host.tags():
create_msg = _('Successfully created the host. Now you should do a '
'<a href="%s">service discovery</a>
in order to auto-configure '
'all services to be checked on this host.') % \