mirror of https://github.com/Icinga/icinga2.git
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 8d3c8fd107
)
This commit is contained in:
parent
bac6f17eff
commit
32dc61a788
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue