projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
I wonder if that will help
[mirror/dsa-puppet.git]
/
modules
/
puppetmaster
/
lib
/
puppet
/
parser
/
functions
/
whohosts.rb
diff --git
a/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb
b/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb
index
972c3bc
..
73f4212
100644
(file)
--- a/
modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb
+++ b/
modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb
@@
-23,8
+23,12
@@
module Puppet::Parser::Functions
next
end
netrange.each do |net|
- if IPAddr.new(net).include?(addr)
- return hoster
+ begin
+ if IPAddr.new(net).include?(addr)
+ return hoster
+ end
+ rescue
+ raise "Could not match addr #{addr} for net #{net}"
end
end
end