From feec4f0d69e0d7d95f29a22e533b15120c7e893f Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 26 Apr 2009 16:59:02 +0100 Subject: [PATCH] Let's not change motd needlessly Signed-off-by: Stephen Gran --- templates/motd.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1