[icinga-checkins] icinga.org: icinga-core/mfriedrich/ido: core issue #3111: sched_down. pl bails out when directive value is not set

git at icinga.org git at icinga.org
Wed Oct 3 01:14:52 CEST 2012


Module: icinga-core
Branch: mfriedrich/ido
Commit: eecab5b9eeea1e9d47431f6505dba16c6f5cb1e5
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=eecab5b9eeea1e9d47431f6505dba16c6f5cb1e5

Author: Wolfgang <wnd at gmx.net>
Date:   Sun Sep 23 14:21:50 2012 +0200

core issue #3111: sched_down.pl bails out when directive value is not set

---

 contrib/downtimes/sched_down.pl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/contrib/downtimes/sched_down.pl b/contrib/downtimes/sched_down.pl
index 650a34c..89b441b 100644
--- a/contrib/downtimes/sched_down.pl
+++ b/contrib/downtimes/sched_down.pl
@@ -290,6 +290,7 @@ sub read_object_file {
 			next;
 		}
 		my ($obj,$val) = /(.*?)\s+(.*)/;
+		next unless (defined $val);
 		if ($obj =~ /(.+)group_name/) {
 			$tmp->{type} = $1;
 			$tmp->{name} = $val;





More information about the icinga-checkins mailing list