summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 (
[