X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmotd%2Ftemplates%2Fmotd.erb;h=2430bb1dd7020ffcc7192a1fd90bd00c49f5eeb9;hb=fcbadcd7ee97cd5c9625a411bed276b0b5de069d;hp=8f353dfb08551a1fee3ca768af8b30ce894c4836;hpb=3a18a2560244c20c7aa4fa4b8378821318f22f6b;p=mirror%2Fdsa-puppet.git diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 8f353dfb0..2430bb1dd 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').to_s.empty? +if scope.lookupvar('::cluster').to_s != 'undefined' purp += "\nThis server is a node in ganeti cluster: " purp += scope.lookupvar('::cluster').to_s + ".\n" nodes = scope.lookupvar('::cluster_nodes').to_s.split.sort