From: Stephen L Johnson Date: Mon, 18 Sep 2000 18:42:18 +0000 (+0000) Subject: added code to skip display of group if 'display' attr == 0 X-Git-Tag: spong-2_7_0-beta1~39 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82b898f5579369ed605e565b5be1973bf3c910ad;p=spong.git added code to skip display of group if 'display' attr == 0 --- 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; } }