From 32dc61a78824251c3d8508da03108aab8fd58ad9 Mon Sep 17 00:00:00 2001 From: Bas Couwenberg Date: Tue, 26 Feb 2019 08:49:36 +0100 Subject: [PATCH] Fix nested hostgroup example In Icinga 1.x the list of members was set on the group object, in Icinga 2 the list of groups is set on the member objects. (cherry picked from commit 8d3c8fd107f5c6e0da5551992208213fd4b8a867) --- doc/23-migrating-from-icinga-1x.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/23-migrating-from-icinga-1x.md b/doc/23-migrating-from-icinga-1x.md index 4dd6e8397..4583b1606 100644 --- a/doc/23-migrating-from-icinga-1x.md +++ b/doc/23-migrating-from-icinga-1x.md @@ -116,11 +116,11 @@ This can be migrated to Icinga 2 and [using group assign](17-language-reference. object HostGroup "hg1" { + groups = [ "hg2" ] assign where host.name in [ "host1", "host2" ] } object HostGroup "hg2" { - groups = [ "hg1" ] assign where host.name == "host3" }