projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
skip entries that don't have all the attributes we're searching for
[mirror/dsa-puppet.git]
/
files
/
etc
/
puppet
/
lib
/
puppet
/
parser
/
functions
/
nodeinfo.rb
diff --git
a/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb
b/files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb
index
11d3e7d
..
d7f3dae
100644
(file)
--- a/
files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb
+++ b/
files/etc/puppet/lib/puppet/parser/functions/nodeinfo.rb
@@
-53,7
+53,9
@@
module Puppet::Parser::Functions
results['ldap'] << x
end
rescue LDAP::ResultError
+ raise Puppet::ParseError, "LDAP error"
rescue RuntimeError
+ raise Puppet::ParseError, "No data returned from search"
ensure
ldap.unbind
end