From 8dffe43c9cc83593ab06294e82e1a2654639179a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 21 Mar 2012 12:02:41 +0100 Subject: [PATCH 1/1] Have name copied to longname if there is no longname --- modules/puppetmaster/lib/puppet/parser/functions/whohosts.rb | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2