]> git.etc.gen.nz Git - spong.git/commitdiff
added code to skip display of group if 'display' attr == 0
authorStephen L Johnson <sjohnson@monsters.org>
Mon, 18 Sep 2000 18:42:18 +0000 (18:42 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Mon, 18 Sep 2000 18:42:18 +0000 (18:42 +0000)
src/lib/Spong/HostGroups.pm

index 3c428785b664430ea5e04395f1508c58aaf1df5b..78d4cac30f6313bd5616937c1f2898e7423ce294 100755 (executable)
@@ -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; }
       }