Module: check_mk
Branch: master
Commit: 37034aa7427fe030dfd979ac490f624095dc022e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=37034aa7427fe0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 30 12:35:34 2010 +0100
wato: Fixed hostname field handling when trying to create already existing host
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index f1e8a4f..9c8185d 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -271,7 +271,7 @@ def mode_edithost(phase, new):
title = "Create clone of %s" % clonename
alias, ipaddress, tags = g_hosts[clonename]
mode = "clone"
- elif hostname in g_hosts:
+ elif not new and hostname in g_hosts:
title = "Edit host " + hostname
alias, ipaddress, tags = g_hosts[hostname]
mode = "edit"