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.donarmstrong.com/?a=commitdiff_plain;h=8dffe43c9cc83593ab06294e82e1a2654639179a;hp=7646d20909ecc6a1665414b4ee00b104cb4f251f;p=dsa-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 5dec7b0d..b55204ac 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