projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68ae941
)
fix motd
author
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 22:34:46 +0000
(22:34 +0000)
committer
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 22:34:46 +0000
(22:34 +0000)
modules/motd/templates/motd.erb
patch
|
blob
|
history
diff --git
a/modules/motd/templates/motd.erb
b/modules/motd/templates/motd.erb
index
d5cc580
..
4a2e7dd
100644
(file)
--- a/
modules/motd/templates/motd.erb
+++ b/
modules/motd/templates/motd.erb
@@
-100,7
+100,7
@@
unless vms.empty?
end
-if
scope.lookupvar('::cluster')
+if
not scope.lookupvar('::cluster').empty?
purp += "\nThis server is a node in ganeti cluster: "
purp += scope.lookupvar('::cluster') + ".\n"
scope.lookupvar('::cluster_nodes').split.each do |node|