]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
this might be the bug
authorStephen Gran <steve@lobefin.net>
Sat, 2 Mar 2013 15:19:58 +0000 (15:19 +0000)
committerStephen Gran <steve@lobefin.net>
Sat, 2 Mar 2013 15:19:58 +0000 (15:19 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb

index d77d65c88dd66de2ca34df4afe1f004e4a27ba17..7698df30ed9df6ef1c0f13a10b20ab57f4ced2ed 100644 (file)
@@ -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']