From: Peter Palfrader Date: Wed, 17 Apr 2013 07:04:30 +0000 (+0200) Subject: Fix logic X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=3dcd0c4d8f4fcb268290d942145dd443e5b8ba6e;p=mirror%2Fdsa-puppet.git Fix logic --- diff --git a/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb b/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb index 58fbd8f7e..215075466 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb @@ -45,7 +45,7 @@ module Puppet::Parser::Functions # no nameservers known for this hoster nodeinfo['misc']['resolver-recursive'] = true - if not allow_dns_q.empty? + if allow_dns_q.empty? raise Puppet::ParseError, "No nameservers listed for #{nodeinfo['hoster']['name']} yet we should answer somebody's queries? That makes no sense." end elsif (nodeinfo['misc']['v4addrs'] and (ns & nodeinfo['misc']['v4addrs']).size > 0) or