summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-01-25 18:52:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-01-25 18:52:53 +0100
commit08da44369e0b6fa281bbe41afa4ba9f95718c041 (patch)
treeb2bd3f32ca7ef8942967283736f36a638360e3e2
parent8af975edfba64c92564d9cbfcee611679d918624 (diff)
Do not throw warning when encountering an empty contact group
-rw-r--r--Changelog1
-rwxr-xr-xbin/icli2
2 files changed, 2 insertions, 1 deletions
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 (
[