From: Stephen Gran Date: Sat, 2 Mar 2013 15:26:27 +0000 (+0000) Subject: spell it more ruby like X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=7fc5644a5df86439c2dc18e2d56f009bd0f7ca2f;p=mirror%2Fdsa-puppet.git spell it more ruby like 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 7698df30e..b9d74ee4e 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'].respond_to?('include?') && nodeinfo['ldap']['purpose'].include?('buildd')) if lookupvar('::mta') == 'exim4' unless nodeinfo['heavy_exim']