summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2012-09-10 13:25:27 -0700
committerBryan McLellan <btm@opscode.com>2012-09-10 14:04:15 -0700
commit5771a33f276d495a8fd32d56ad3eb1ea92c1a972 (patch)
treec247715a6fd3e4c847e258c6105568b88efbd0ee
parenta451602fc2f62816a5f0d970873048bba9b848ed (diff)
downloadchef-5771a33f276d495a8fd32d56ad3eb1ea92c1a972.tar.gz
[CHEF-3431] Sort roles hash on key
Fixes 500 caused by call to undefined method Array#downcase
-rw-r--r--chef-server-webui/app/views/roles/index.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-server-webui/app/views/roles/index.html.haml b/chef-server-webui/app/views/roles/index.html.haml
index 3ad92be50e..127c307e6c 100644
--- a/chef-server-webui/app/views/roles/index.html.haml
+++ b/chef-server-webui/app/views/roles/index.html.haml
@@ -11,7 +11,7 @@
%th &nbsp;
%th.last &nbsp;
- even = false;
- - @role_list.sort_by {|value| value.downcase}.each do |role|
+ - @role_list.sort_by {|name, api_uri| name.downcase}.each do |role|
%tr{ :class => even ? "even" : "odd" }
%td{:colspan => 2}= link_to(role[0], url(:role, role[0]))
%td