From ebcc72d714b16ea72c408e9dfd0c4665be7cf3d7 Mon Sep 17 00:00:00 2001 From: Jason Lavoie Date: Tue, 12 Jul 2016 08:50:44 -0400 Subject: [PATCH] change variable name; sort hash keys --- templates/nslcd.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/nslcd.erb b/templates/nslcd.erb index 3c695bd..6c760d6 100644 --- a/templates/nslcd.erb +++ b/templates/nslcd.erb @@ -47,8 +47,8 @@ filter <%= map %> <%= filter %> <% if @ldap_maps.length > 0 -%> # Custom maps -<% @ldap_maps.each do |map, a| -%> -<% a.each do |attribute, newattribute| -%> +<% @ldap_maps.sort.each do |map, attributes| -%> +<% attributes.sort.each do |attribute, newattribute| -%> map <%= map %> <%= attribute %> <%= newattribute %> <% end -%> <% end -%>