diff options
Diffstat (limited to 'bin/icli')
-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( |