projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dupload.conf: add aliases security, ftp-master, backports
[mirror/dsa-puppet.git]
/
files
/
etc
/
puppet
/
lib
/
puppet
/
parser
/
functions
/
whohosts.rb
diff --git
a/files/etc/puppet/lib/puppet/parser/functions/whohosts.rb
b/files/etc/puppet/lib/puppet/parser/functions/whohosts.rb
index
e31688b
..
c2bda8c
100644
(file)
--- a/
files/etc/puppet/lib/puppet/parser/functions/whohosts.rb
+++ b/
files/etc/puppet/lib/puppet/parser/functions/whohosts.rb
@@
-12,8
+12,8
@@
module Puppet::Parser::Functions
ans = "unknown"
yaml = YAML.load_file(yamlfile)
ans = "unknown"
yaml = YAML.load_file(yamlfile)
- if (nodeinfo['ldap'].
at(0)) and (nodeinfo['ldap'][0].
has_key?('ipHostNumber'))
- nodeinfo['ldap'][
0][
'ipHostNumber'].each do |addr|
+ if (nodeinfo['ldap'].has_key?('ipHostNumber'))
+ nodeinfo['ldap']['ipHostNumber'].each do |addr|
yaml.keys.each do |hoster|
yaml[hoster].each do |net|
if IPAddr.new(net).include?(addr)
yaml.keys.each do |hoster|
yaml[hoster].each do |net|
if IPAddr.new(net).include?(addr)