[checkmk-commits] Fixed host rename in current history file after recent change

Lars Michelsen lm at mathias-kettner.de
Mon Nov 27 12:00:40 CET 2017


Module: check_mk
Branch: master
Commit: c8eb40ada4ec944ddcc35f15f85aef8c1840b10b
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c8eb40ada4ec944ddcc35f15f85aef8c1840b10b

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Mon Nov 27 11:52:56 2017 +0100

Fixed host rename in current history file after recent change

Change-Id: I30b1f1850c3d67b95c91fd7aeee74778b228b740

---

 cmk_base/automations/check_mk.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmk_base/automations/check_mk.py b/cmk_base/automations/check_mk.py
index 8e2099e..90e358e 100644
--- a/cmk_base/automations/check_mk.py
+++ b/cmk_base/automations/check_mk.py
@@ -431,7 +431,7 @@ class AutomationRenameHosts(Automation):
     def _rename_host_in_remaining_core_history_files(self, oldname, newname):
         """Perform the rename operation in all history archive files that have not been handled yet"""
         finished_file_paths = self._finished_history_files[(oldname, newname)]
-        all_file_paths = set(self._get_core_history_files(only_archive=True))
+        all_file_paths = set(self._get_core_history_files(only_archive=False))
         todo_file_paths = list(all_file_paths.difference(finished_file_paths))
         return self._rename_host_in_core_history_files(todo_file_paths, oldname, newname)
 



More information about the checkmk-commits mailing list