hiera now passes through nil correctly
[mirror/dsa-puppet.git] / modules / motd / templates / motd.erb
index 6b4f640..5632823 100644 (file)
@@ -107,7 +107,7 @@ unless vms.empty?
 end
 
 
-if scope.lookupvar('::cluster').to_s != 'undefined'
+if scope.lookupvar('::cluster')
   purp += "\n This server is a node in ganeti cluster: "
   purp += scope.lookupvar('::cluster').to_s + ":\n"
   purp += "\t" + scope.lookupvar('::cluster_nodes').split.sort.map{ |x| x.split('.')[0] }.join(", ") + ".\n"