Module: check_mk
Branch: master
Commit: 000505ddfcb47f5abf959bc5d348e2f4c6e520da
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=000505ddfcb47f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Oct 5 16:04:05 2015 +0200
Removed obsolete variable
---
web/htdocs/wato.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index a0c251c..ed9adad 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2316,6 +2316,7 @@ def mode_rename_host(phase):
html.hidden_fields()
html.end_form()
+
def rename_host_in_list(thelist, oldname, newname):
did_rename = False
for nr, element in enumerate(thelist):
@@ -2327,6 +2328,7 @@ def rename_host_in_list(thelist, oldname, newname):
did_rename = True
return did_rename
+
def rename_host(host, newname):
actions = []
@@ -2410,8 +2412,6 @@ def rename_host(host, newname):
# this automation the core will be stopped, after the renaming has
# taken place a new configuration will be created and the core started
# again.
- ip_lookup_failed = True
- # TODO: inventory and inventory_archive
action_counts = check_mk_automation(host[".siteid"],
"rename-hosts", [], [(oldname, newname)])
actions = render_renaming_actions(action_counts)