From: Peter Palfrader Date: Wed, 21 Mar 2012 11:02:41 +0000 (+0100) Subject: Have name copied to longname if there is no longname X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=8dffe43c9cc83593ab06294e82e1a2654639179a;p=mirror%2Fdsa-puppet.git Have name copied to longname if there is no longname --- diff --git a/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb b/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb index 5dec7b0de..b55204ac8 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb @@ -30,6 +30,9 @@ module Puppet::Parser::Functions end end end + if not ans['longname'] + ans['longname'] = ans['name'] + end return ans end end