pf-tools/pf-tools: looped twice
parmelan-guest at users.alioth.debian.org
parmelan-guest at users.alioth.debian.org
Fri Sep 12 15:31:34 UTC 2014
details: http://hg.debian.org/hg/pf-tools/pf-tools/rev/9600a30c98b1
changeset: 1332:9600a30c98b1
user: shad
date: Fri Sep 12 17:29:32 2014 +0200
description:
looped twice
diffstat:
tools/Display_IP_config | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)
diffs (27 lines):
diff -r 7b9779ade096 -r 9600a30c98b1 tools/Display_IP_config
--- a/tools/Display_IP_config Fri Sep 12 15:33:15 2014 +0200
+++ b/tools/Display_IP_config Fri Sep 12 17:29:32 2014 +0200
@@ -225,17 +225,12 @@
}
}
else {
- foreach
- my $hostname ( sort keys %{ $host_part->{ $options->{'host'} } } )
- {
- next if !ref( $host_part->{ $options->{'host'} }->{$hostname} );
- my $srv_ip = get_srv_ip( $options->{'type'}, $options->{'host'},
- $host_part->{ $options->{'host'} }, $PF_CONFIG );
- foreach my $ip ( sort { _ipcomp( $a, $b ) } keys %{$srv_ip} ) {
- print $ip. "\t"
- . $srv_ip->{$ip}->{'hostname'} . q{(}
- . $srv_ip->{$ip}->{'iface'} . ")\n";
- }
+ my $srv_ip = get_srv_ip( $options->{'type'}, $options->{'host'},
+ $host_part->{ $options->{'host'} }, $PF_CONFIG );
+ foreach my $ip ( sort { _ipcomp( $a, $b ) } keys %{$srv_ip} ) {
+ print $ip. "\t"
+ . $srv_ip->{$ip}->{'hostname'} . q{(}
+ . $srv_ip->{$ip}->{'iface'} . ")\n";
}
}
}
More information about the pf-tools-commits
mailing list