Browse Source

Fix template variables

When serveraliases is not defined it should evaluate to nil, not ''.
Check for both to cover our bases.

Change-Id: Ie69baf01963f33cf695a0de763af75dc33b67daa
changes/69/582169/1
Colleen Murphy 1 year ago
parent
commit
74e6af7fd7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      templates/dual-elasticsearch.vhost.erb

+ 1
- 1
templates/dual-elasticsearch.vhost.erb View File

@@ -3,7 +3,7 @@
ServerAdmin <%= @serveradmin %>
<% if @serveraliases.is_a? Array %>
<% @serveraliases.each do |name| %><%= " ServerAlias #{name}\n" %><% end %>
<% elsif @serveraliases != '' %>
<% elsif ! ['', nil].include?(@serveraliases) %>
<%= " ServerAlias #{@serveraliases}" %>
<% end %>


Loading…
Cancel
Save