From 8c4feb93f8fd8b6b40e8034daa8d3e32c147193e Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Fri, 12 Sep 2014 11:12:39 -0700 Subject: [PATCH] Compare values to :undef to test for existence Change-Id: I87a7268ae56737a507faafb510801fd5b21a04d2 --- templates/storyboard_http.vhost.erb | 2 +- templates/storyboard_https.vhost.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/storyboard_http.vhost.erb b/templates/storyboard_http.vhost.erb index 0cff590..efa7a19 100644 --- a/templates/storyboard_http.vhost.erb +++ b/templates/storyboard_http.vhost.erb @@ -1,5 +1,5 @@ :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") %> diff --git a/templates/storyboard_https.vhost.erb b/templates/storyboard_https.vhost.erb index b7482c5..be95821 100644 --- a/templates/storyboard_https.vhost.erb +++ b/templates/storyboard_https.vhost.erb @@ -1,5 +1,5 @@ :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 @@ :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") %>