new function call to find hiera objects
authorMartin Zobel-Helas <zobel@debian.org>
Sat, 18 Mar 2017 12:43:09 +0000 (13:43 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Sat, 18 Mar 2017 12:43:09 +0000 (13:43 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb

index cf8ea9d..71d5ee5 100644 (file)
@@ -41,8 +41,8 @@ module Puppet::Parser::Functions
         end
       end
 
-      ns = function_hiera(['nameservers'])
-      allow_dns_q = function_hiera(['allow_dns_query'])
+      ns = call_function('hiera',['nameservers'])
+      allow_dns_q = call_function('hiera',['allow_dns_query'])
       if ns.empty?
         # no nameservers known for this hoster
         nodeinfo['misc']['resolver-recursive'] = true