summaryrefslogtreecommitdiff
path: root/bin/icli
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2010-11-08 18:57:34 +0100
committerDaniel Friesel <derf@finalrewind.org>2010-11-08 18:57:37 +0100
commitf6da41cf6ec3939f31354680e6b70ce1bcbb50c2 (patch)
treed25ba9694e2e1a0a32a9130d5b8e9c2e7b25f32e /bin/icli
parentf6d467ad0567dd377efd16995294fafd6aef3e71 (diff)
icli: Accept filters for -lq, too
Diffstat (limited to 'bin/icli')
-rwxr-xr-xbin/icli6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/icli b/bin/icli
index e65e4b9..259e22e 100755
--- a/bin/icli
+++ b/bin/icli
@@ -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(