From: Stephen Gran Date: Mon, 16 Apr 2012 19:08:31 +0000 (+0100) Subject: make this explode X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=1fb1e088994c071cb659b10b8d4aaafbda70fbf6;p=mirror%2Fdsa-puppet.git make this explode 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 74dcd892b..6d465520d 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb @@ -13,6 +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") + raise Puppet::ParseError, "#{nodeinfo['ldap']['purpose']}" nodeinfo['buildd'] = nodeinfo['ldap']['purpose'].include?('buildd') nodeinfo['misc'] = {}