Fix bug with 'any'

This commit is contained in:
Tom Eastep 2010-08-12 07:31:37 -07:00
parent aa00acc310
commit 69eaf84078

View File

@ -740,7 +740,13 @@ sub non_firewall_zones() {
}
sub all_parent_zones() {
grep ( ! @{$zones{$_}{parents}} , @zones );
#
# Although the firewall zone is a parent zone, we let the caller decide
# if it is to be included or not.
#
grep ( ! ( $zones{$_}->{type} == FIREWALL ||
$zones{$_}->{type} == VSERVER ||
@{$zones{$_}{parents}} ) , @zones );
}
sub complex_zones() {