From 82b898f5579369ed605e565b5be1973bf3c910ad Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Mon, 18 Sep 2000 18:42:18 +0000 Subject: [PATCH] added code to skip display of group if 'display' attr == 0 --- src/lib/Spong/HostGroups.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Spong/HostGroups.pm b/src/lib/Spong/HostGroups.pm index 3c42878..78d4cac 100755 --- a/src/lib/Spong/HostGroups.pm +++ b/src/lib/Spong/HostGroups.pm @@ -49,6 +49,7 @@ sub new { } elsif ( $grps eq "ALL" ) { foreach $group ( keys %main::GROUPS ) { next if $group eq 'all' && ! $main::HOSTGROUPSALL; + next if $group->{'display'} == 0; # skip if display attr = 0 my $object = Spong::HostList->new( $group ); if( $object ) { $groups{$group} = $object; } } -- 2.30.2