From: Stephen Gran Date: Sun, 24 Jun 2012 09:07:46 +0000 (+0100) Subject: more? X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=3a18a2560244c20c7aa4fa4b8378821318f22f6b;p=mirror%2Fdsa-puppet.git more? Signed-off-by: Stephen Gran --- diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 57b05e4c0..8f353dfb0 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -102,8 +102,8 @@ end if not scope.lookupvar('::cluster').to_s.empty? purp += "\nThis server is a node in ganeti cluster: " - purp += scope.lookupvar('::cluster') + ".\n" - nodes = scope.lookupvar('::cluster_nodes').split.sort + purp += scope.lookupvar('::cluster').to_s + ".\n" + nodes = scope.lookupvar('::cluster_nodes').to_s.split.sort nodes.each do |node| purp += "\t" + node + "\n" end