Try to make extractnodeinfo accept more than one level of hash keys
[mirror/dsa-puppet.git] / files / etc / puppet / lib / puppet / parser / functions / allnodeinfo.rb
index b38da34..47450d5 100644 (file)
@@ -1,6 +1,6 @@
 module Puppet::Parser::Functions
   newfunction(:allnodeinfo, :type => :rvalue) do |attributes|
-    require '/etc/puppet/lib/puppet/parser/functions/ldapinfo.rb'
-    return (function_ldapinfo('*', attributes))
+    attributes.unshift('*')
+    return (function_ldapinfo(attributes))
   end
 end