From b97f50b20f35f7f736d6c6a9ec80a98e1cf9dcb8 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 30 Jun 2012 12:56:32 +0200 Subject: [PATCH] baeh puppet --- modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb b/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb index 47251c0a3..d77d65c88 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/nodeinfo.rb @@ -25,7 +25,7 @@ module Puppet::Parser::Functions fqdn = lookupvar('::fqdn') if fqdn and fqdn == host v4ips = lookupvar('::v4ips') - if v4ips + if v4ips and v4ips.to_s != "" and v4ips.to_s != 'undefined' nodeinfo['misc']['v4addrs'] = v4ips.split(',') # find out if we are behind nat -- 2.20.1