From: Stephen Gran Date: Sun, 26 Apr 2009 15:59:02 +0000 (+0100) Subject: Let's not change motd needlessly X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=feec4f0d69e0d7d95f29a22e533b15120c7e893f;p=mirror%2Fdsa-puppet.git Let's not change motd needlessly Signed-off-by: Stephen Gran --- diff --git a/templates/motd.erb b/templates/motd.erb index d0538d41e..b186dc917 100644 --- a/templates/motd.erb +++ b/templates/motd.erb @@ -34,7 +34,7 @@ if (nodeinfo['ldap'].at(0)) and (nodeinfo['ldap'][0].has_key?('purpose')) purp += " porterbox\n" else purp += ", used for the following services:\n" - nodeinfo['ldap'][0]['purpose'].each do |l| + nodeinfo['ldap'][0]['purpose'].sort.each do |l| if l =~ /\[\[(\*|-)?(.*?)\]\]/ l = $2 end