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

Loading…
Cancel
Save