From 08da44369e0b6fa281bbe41afa4ba9f95718c041 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 25 Jan 2014 18:52:53 +0100 Subject: Do not throw warning when encountering an empty contact group --- Changelog | 1 + bin/icli | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index d59632c..37ea3a1 100644 --- a/Changelog +++ b/Changelog @@ -3,6 +3,7 @@ git HEAD * Remove autodie dependency, improve error messages * Allow build-item specification of icinga paths (perl Build.PL --icli-xyz-file=..., see README) + * Do not throw warnings when encountering empty contact groups icli 0.46 - Sun Sep 29 2013 diff --git a/bin/icli b/bin/icli index 2df7ac8..3d7af82 100755 --- a/bin/icli +++ b/bin/icli @@ -373,7 +373,7 @@ sub read_objects_line { } when ('contactgroup') { ${$ref}->{contactgroups}->{ $cache->{contactgroup_name} } - = [ split( m{, *}, $cache->{members} ) ]; + = [ split( m{, *}, $cache->{members} // q{} ) ]; } when ( [ -- cgit v1.2.3