From: Stephen Gran Date: Sun, 24 Jun 2012 09:05:58 +0000 (+0100) Subject: a little more defense X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=a543ef864996ce14579dab479a496f2cdc80e80e a little more defense Signed-off-by: Stephen Gran --- diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 45e529ab..57b05e4c 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -100,7 +100,7 @@ unless vms.empty? end -if not scope.lookupvar('::cluster').empty? +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