summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/Master.pm
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-09-05 08:13:24 +0200
committerTobi Oetiker <tobi@oetiker.ch>2007-09-05 08:13:24 +0200
commit25d4c21620dd04ce9c472ec5141560cefdf9ae29 (patch)
tree9a9ebe98475446f83a91c1ddffc5874801123849 /lib/Smokeping/Master.pm
parent4280c7413ee558d1e19f993a85b675d3c4598a05 (diff)
downloadsmokeping-25d4c21620dd04ce9c472ec5141560cefdf9ae29.tar.gz
smokeping-25d4c21620dd04ce9c472ec5141560cefdf9ae29.tar.xz
* fixes for pod generation
* skip multi target hosts for slaves * report content-lengh in header
Diffstat (limited to 'lib/Smokeping/Master.pm')
-rw-r--r--lib/Smokeping/Master.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Smokeping/Master.pm b/lib/Smokeping/Master.pm
index ddd708e..065270b 100644
--- a/lib/Smokeping/Master.pm
+++ b/lib/Smokeping/Master.pm
@@ -38,6 +38,7 @@ sub get_targets {
# dynamic hosts can only be queried from the
# master
next if $key eq 'host' and $trg->{$key} eq 'DYNAMIC';
+ next if $key eq 'host' and $trg->{$key} =~ m|^/|; # skip multi targets
next if $key eq 'host' and not ( defined $trg->{slaves} and $trg->{slaves} =~ /\b${slave}\b/);
if (ref $trg->{$key} eq 'HASH'){
$return{$key} = get_targets ($trg->{$key},$slave);