diff options
author | Daniel Friesel <derf@finalrewind.org> | 2010-11-08 18:57:34 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2010-11-08 18:57:37 +0100 |
commit | f6da41cf6ec3939f31354680e6b70ce1bcbb50c2 (patch) | |
tree | d25ba9694e2e1a0a32a9130d5b8e9c2e7b25f32e | |
parent | f6d467ad0567dd377efd16995294fafd6aef3e71 (diff) |
icli: Accept filters for -lq, too
-rwxr-xr-x | bin/icli | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -184,8 +184,10 @@ sub display_queue { (values %{$data->{hosts}}, map { @{$_} } values %{$data->{services}}); - if (@for_hosts) { - @queue = grep { $_->{host_name} ~~ \@for_hosts } @queue; + @queue = grep { $_->{host_name} ~~ \@list_hosts } @queue; + + if (@list_services) { + @queue = grep { $_->{service_description} ~~ \@list_services } @queue; } printf( |