summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-11-03 02:06:27 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-11-03 02:06:27 +0100
commit485377cf03560635c8590f5f053752b805e5f2fa (patch)
tree9cd5a32a8bc8b7d56e298a0088ee67798a015dc0 /lib
parent35490069d03df22ec290f707eba31d7b26e8517d (diff)
downloadsmokeping-485377cf03560635c8590f5f053752b805e5f2fa.tar.gz
smokeping-485377cf03560635c8590f5f053752b805e5f2fa.tar.xz
fixed slave check
Diffstat (limited to 'lib')
-rw-r--r--lib/Smokeping.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 56f2188..749af41 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -447,7 +447,7 @@ sub init_target_tree ($$$$) {
};
for my $slave (@slaves){
die "ERROR: slave '$slave' is not defined in the '*** Slaves ***' section!\n"
- unless $cfg->{Slaves}{$slave};
+ unless $slave eq '' or defined $cfg->{Slaves}{$slave};
my $s = $slave ? "~".$slave : "";
my @create =
($name.$s.".rrd", "--start",(time-1),"--step",$step,