<NME> _wsgi.erb
<BEF> <% if @wsgi_application_group or @wsgi_daemon_process or @wsgi_import_script or @wsgi_process_group -%>

  ## WSGI configuration
<% end -%>
<% if @wsgi_application_group -%>
  WSGIApplicationGroup <%= @wsgi_application_group %>
<% end -%>
<% if @wsgi_daemon_process.is_a? String and @wsgi_daemon_process_options -%>
  WSGIDaemonProcess <%= @wsgi_daemon_process %> <%= @wsgi_daemon_process_options.collect { |k,v| "#{k}=#{v}"}.sort.join(' ') %>
<% elsif @wsgi_daemon_process.is_a? String and !@wsgi_daemon_process_options -%>
  WSGIDaemonProcess <%= @wsgi_daemon_process %>
<% elsif @wsgi_daemon_process.is_a? Hash -%>
  <%- @wsgi_daemon_process.each do |key, val| -%>
    <%- if val.empty? -%>
  WSGIDaemonProcess <%= key %>
    <%- else -%>
  WSGIDaemonProcess <%= key %> <%= val.collect { |k,v| "#{k}=#{v}"}.sort.join(' ') %>
<% end -%>
<% end -%>
<% end -%>
<% if @wsgi_import_script and @wsgi_import_script_options -%>
  WSGIImportScript <%= @wsgi_import_script %> <%= @wsgi_import_script_options.collect { |k,v| "#{k}=#{v}"}.sort.join(' ') %>
<% end -%>
<% if @wsgi_process_group -%>
  WSGIProcessGroup <%= @wsgi_process_group %>
<% end -%>
<% if @wsgi_script_aliases_match and ! @wsgi_script_aliases_match.empty? -%>
  <%- @wsgi_script_aliases_match.keys.sort.reverse.each do |key| -%>
      <%- if @wsgi_script_aliases[key].is_a? Array -%>
  WSGIScriptAlias <%= key %> <%= @wsgi_script_aliases[key].join(' ') %>
      <%- else -%>
  WSGIScriptAlias <%= key %> <%= @wsgi_script_aliases[key] %>
      <%- end -%>
    <%- end -%>
  <%- end -%>
    <%- if key != '' and @wsgi_script_aliases[key] != ''-%>
      <%- if @wsgi_script_aliases[key].is_a? Array -%>
  WSGIScriptAlias <%= key %> <%= @wsgi_script_aliases[key].join(' ') %>
      <%- else -%>
  WSGIScriptAlias <%= key %> "<%= @wsgi_script_aliases[key] %>"
      <%- end -%>
    <%- end -%>
  <%- end -%>
<% end -%>
<% if @wsgi_pass_authorization -%>
  WSGIPassAuthorization <%= @wsgi_pass_authorization %>
<% end -%>
<% if @wsgi_chunked_request -%>
  WSGIChunkedRequest <%= @wsgi_chunked_request %>
<% end -%>

<MSG> Added quotes

<DFF> @@ -29,7 +29,7 @@
       <%- if @wsgi_script_aliases[key].is_a? Array -%>
   WSGIScriptAlias <%= key %> <%= @wsgi_script_aliases[key].join(' ') %>
       <%- else -%>
-  WSGIScriptAlias <%= key %> <%= @wsgi_script_aliases[key] %>
+  WSGIScriptAlias <%= key %> "<%= @wsgi_script_aliases[key] %>"
       <%- end -%>
     <%- end -%>
   <%- end -%>

{'addition_count': 1, 'commit_subject': 'Added quotes', 'deletion_count': 1, 'file_extension': '.erb', 'lang': 'erb', 'license': 'apache-2.0', 'repo_name': 'puppetlabs/puppetlabs-apache'}