Werk #14474: Fix parent renaming for hosts in subfolders

Component Setup
Title Fix parent renaming for hosts in subfolders
Date Aug 24, 2022
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0p29 2.1.0p13 2.2.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

The renaming of hosts includes the renaming of parents, if the host that is renamed is a parent of other hosts.

This renaming was faulty if the child host was in a subfolder that inherited the parent attribute from a parent folder, leading to messages like "The parent "FOO" of the host "BAR" is not defined on this site" on activation of changes.

Note that the parent was renamed correctly in the parent folder where the attribute was effectivly set. Saving the folder properties again after renaming fixed the mentioned error message.

To the list of all Werks