From: Bas Couwenberg Date: Tue, 26 Feb 2019 07:49:36 +0000 (+0100) Subject: Fix nested hostgroup example X-Git-Tag: v2.11.0-rc1~216^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F6975%2Fhead;p=icinga2 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. --- 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" }