From 558470bcccde6fd99b732b51693943a48a27438a Mon Sep 17 00:00:00 2001 From: Mike Almond Date: Fri, 21 Feb 2014 12:14:51 -0500 Subject: [PATCH] Fix deprecated variable access warning in vhost header template --- templates/vhost/vhost_header.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/vhost/vhost_header.erb b/templates/vhost/vhost_header.erb index ae0217dba..04c4bc70a 100644 --- a/templates/vhost/vhost_header.erb +++ b/templates/vhost/vhost_header.erb @@ -14,7 +14,7 @@ server { <%# make sure that allow comes before deny by forcing the allow key (if it -%> <%# exists) to be first in the output order. The hash keys also need to be -%> <%# sorted so that the ordering is stable. -%> -<% if @vhost_cfg_prepend -%><% vhost_cfg_prepend.sort_by{ |k, v| k.to_s == 'allow' ? '' : k.to_s }.each do |key,value| -%> +<% if @vhost_cfg_prepend -%><% @vhost_cfg_prepend.sort_by{ |k, v| k.to_s == 'allow' ? '' : k.to_s }.each do |key,value| -%> <%= key %> <%= value %>; <% end -%><% end -%> <% if @root -%>