Skip to content

Commit

Permalink
MODULES-1384 - idempotency for wsgi_script_aliases
Browse files Browse the repository at this point in the history
When parsing wsgi_aliases, sort the keys then generate the underlying template.
  • Loading branch information
Mike Delaney authored and Morgan Haskel committed Nov 17, 2014
1 parent e559e7b commit 6d100c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/vhost/_wsgi.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
WSGIProcessGroup <%= @wsgi_process_group %>
<% end -%>
<% if @wsgi_script_aliases and ! @wsgi_script_aliases.empty? -%>
<%- @wsgi_script_aliases.each do |a, p| -%>
<%- if a != '' and p != ''-%>
WSGIScriptAlias <%= a %> "<%= p %>"
<%- @wsgi_script_aliases.keys.sort.each do |key| -%>
<%- if key != '' and @wsgi_script_aliases[key] != ''-%>
WSGIScriptAlias <%= key %> "<%= @wsgi_script_aliases[key] %>"
<%- end -%>
<%- end -%>
<% end -%>
Expand Down

0 comments on commit 6d100c8

Please sign in to comment.