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:
9ccf581
)
a little more defense
author
Stephen Gran
<steve@lobefin.net>
Sun, 24 Jun 2012 09:05:58 +0000
(10:05 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 24 Jun 2012 09:05:58 +0000
(10:05 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/motd/templates/motd.erb
patch
|
blob
|
history
diff --git
a/modules/motd/templates/motd.erb
b/modules/motd/templates/motd.erb
index
45e529a
..
57b05e4
100644
(file)
--- 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