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:
665ec2d
)
Make even purposeless (useless?) hosts have nicely formatted motds
author
Stephen Gran
<steve@lobefin.net>
Sun, 26 Apr 2009 23:42:02 +0000
(
00:42
+0100)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 26 Apr 2009 23:42:02 +0000
(
00:42
+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
b186dc9
..
0d7b4b7
100644
(file)
--- a/
modules/motd/templates/motd.erb
+++ b/
modules/motd/templates/motd.erb
@@
-44,6
+44,8
@@
if (nodeinfo['ldap'].at(0)) and (nodeinfo['ldap'][0].has_key?('purpose'))
purp += "\t" + l + "\n"
end
end
+else
+ purp += "\n"
end
if nodeinfo.has_key?('footer')