From 616907aa2e82709538cb67bfda1fb2444793cbeb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 13 May 2014 20:32:44 +0200 Subject: Fix -lh not showing serviceless hosts (closes #14) --- Changelog | 3 ++- bin/icli | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index c6d20de..acaaf31 100644 --- a/Changelog +++ b/Changelog @@ -6,7 +6,8 @@ git HEAD * Do not throw warnings when encountering empty contact groups * Do not require --recheck when using --force-recheck * Support --force-recheck with a host-only argument to immediately recheck - all services on a host + all services on a host (closses #15) + * Fix -lh not showing serviceless hosts (closes #14) icli 0.46 - Sun Sep 29 2013 diff --git a/bin/icli b/bin/icli index 641893f..5359093 100755 --- a/bin/icli +++ b/bin/icli @@ -993,7 +993,7 @@ foreach my $group (@for_groups) { } if ( @list_hosts == 0 ) { - @list_hosts = sort keys %{ $data->{services} }; + @list_hosts = sort keys %{ $data->{hosts} }; } if (@list_services) { -- cgit v1.2.3