From a84f32b02244c18130bc32f6b410367af2c07279 Mon Sep 17 00:00:00 2001 From: Luca Filipozzi Date: Wed, 16 May 2012 19:51:42 +0000 Subject: [PATCH] helps to put code in correct block --- modules/motd/templates/motd.erb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index bb8c785e5..47e4531be 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -101,17 +101,16 @@ end if scope.lookupvar('::cluster') - purp += "\nThis machine is a node in ganeti cluster: " + purp += "\nThis server is a node in ganeti cluster: " purp += scope.lookupvar('::cluster') + ".\n" + scope.hiera_array('nodes').each do |node| + purp += "\t" + node + "\n" + end end if scope.lookupvar('site::nodeinfo').has_key?('footer') - Puppet::Parser::Functions.function('hiera_array') purp += "\n" + wrap(scope.lookupvar('site::nodeinfo')['footer']) + "\n" - scope.function_hiera_array('nodes').each do |node| - purp += "\t" + node + "\n" - end end purp -- 2.20.1