Skip to content

Commit

Permalink
17169 FIX Also rename parents in folder properties
Browse files Browse the repository at this point in the history
CMK-21232

Change-Id: I9d26cec7816550b4b9497ed592321793002d49fd
  • Loading branch information
makanakoeln committed Nov 13, 2024
1 parent f9d304e commit f32bb3d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .werks/17169.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[//]: # (werk v2)
# Also rename parents in folder properties

key | value
---------- | ---
date | 2024-11-12T14:26:51+00:00
version | 2.3.0p21
class | fix
edition | cre
component | wato
level | 1
compatible | yes

If you renamed a host and a folder had this host as a parent in its properties,
the host was not renamed in the folder properties.

This has been fixed.
1 change: 1 addition & 0 deletions cmk/gui/watolib/hosts_and_folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -2590,6 +2590,7 @@ def rename_parent(self, oldname, newname):
if not changed:
return False

self.attributes["parents"] = [HostName(h) for h in new_parents]
add_change(
"rename-parent",
_l('Renamed parent from %s to %s in folder "%s"')
Expand Down

0 comments on commit f32bb3d

Please sign in to comment.