Compare values to :undef to test for existence
Change-Id: I87a7268ae56737a507faafb510801fd5b21a04d2
This commit is contained in:
parent
9d04e4d824
commit
8c4feb93f8
@ -1,5 +1,5 @@
|
||||
<VirtualHost <%= scope.lookupvar("storyboard::application::hostname") %>:80>
|
||||
<% if scope.lookupvar("storyboard::application::server_admin") %>
|
||||
<% if scope.lookupvar("storyboard::application::server_admin") != :undef %>
|
||||
ServerAdmin <%= scope.lookupvar("storyboard::application::server_admin") %>
|
||||
<% end %>
|
||||
ServerName <%= scope.lookupvar("storyboard::application::hostname") %>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<VirtualHost <%= scope.lookupvar("storyboard::application::hostname") %>:80>
|
||||
<% if scope.lookupvar("storyboard::application::server_admin") %>
|
||||
<% if scope.lookupvar("storyboard::application::server_admin") != :undef %>
|
||||
ServerAdmin <%= scope.lookupvar("storyboard::application::server_admin") %>
|
||||
<% end %>
|
||||
ServerName <%= scope.lookupvar("storyboard::application::hostname") %>
|
||||
@ -15,7 +15,7 @@
|
||||
</VirtualHost>
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost <%= scope.lookupvar("storyboard::application::hostname") %>:443>
|
||||
<% if scope.lookupvar("storyboard::application::server_admin") %>
|
||||
<% if scope.lookupvar("storyboard::application::server_admin") != :undef %>
|
||||
ServerAdmin <%= scope.lookupvar("storyboard::application::server_admin") %>
|
||||
<% end %>
|
||||
ServerName <%= scope.lookupvar("storyboard::application::hostname") %>
|
||||
|
Loading…
Reference in New Issue
Block a user