From: Stephen Gran Date: Sat, 2 Mar 2013 15:19:58 +0000 (+0000) Subject: this might be the bug X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=5402bb478eea848bcaf50b2ac8692e638d50b6af;p=mirror%2Fdsa-puppet.git this might be the bug Signed-off-by: Stephen Gran --- diff --git a/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb b/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb index d77d65c88..7698df30e 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb @@ -13,7 +13,7 @@ module Puppet::Parser::Functions raise Puppet::ParseError, "Host #{host} does not have ipHostNumber values in ldap" end nodeinfo['hoster'] = function_whohosts(nodeinfo['ldap']['ipHostNumber'], "/etc/puppet/modules/debian-org/misc/hoster.yaml") - nodeinfo['buildd'] = nodeinfo['ldap']['purpose'] && nodeinfo['ldap']['purpose'].include?('buildd') + nodeinfo['buildd'] = (nodeinfo['ldap']['purpose'] && nodeinfo['ldap']['purpose'].include?('buildd')) if lookupvar('::mta') == 'exim4' unless nodeinfo['heavy_exim']