diff options
| author | Daniel Friesel <derf@derf.homelinux.org> | 2010-07-30 00:39:28 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-07-30 00:39:28 +0200 | 
| commit | e8d4fa8c1cacc4062a573c46ced2e7c1ee25212a (patch) | |
| tree | b0fbde7c3b6fa09d6b750c662fea0ebbd7ab31df /bin/icli | |
| parent | e22b73286bbf862090785adf022093dab751f62d (diff) | |
icli -lq: Support filtering output with -h/-g
Diffstat (limited to 'bin/icli')
| -rwxr-xr-x | bin/icli | 6 | 
1 files changed, 5 insertions, 1 deletions
@@ -131,6 +131,10 @@ sub display_queue {  	                 (values %{$data->{hosts}},  	                  map { @{$_} } values %{$data->{services}}); +	if (@for_hosts) { +		@queue = grep { $_->{host_name} ~~ \@for_hosts } @queue; +	} +  	printf(  		"%-25.25s  %-20.20s  %-19s  %-19s\n",  		'Host', @@ -239,7 +243,7 @@ foreach my $group (@for_groups) {  	}  } -if (@for_hosts) { +if (@for_hosts and $list_type ~~ [qw/s h/]) {  	foreach my $host (@for_hosts) {  		if (have_host($host)) {  			display_host(  | 
