From 846728631f5247984dfa69b7e82f5014e10f4427 Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 25 Nov 2013 00:43:51 -0800 Subject: fix bug when 'environment' is nil in hiera.yaml --- puppet/modules/site_config/manifests/params.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'puppet/modules') diff --git a/puppet/modules/site_config/manifests/params.pp b/puppet/modules/site_config/manifests/params.pp index 2ef391db..5bdc0077 100644 --- a/puppet/modules/site_config/manifests/params.pp +++ b/puppet/modules/site_config/manifests/params.pp @@ -3,7 +3,7 @@ class site_config::params { $ip_address = hiera('ip_address') $ip_address_interface = getvar("interface_${ip_address}") $ec2_local_ipv4_interface = getvar("interface_${::ec2_local_ipv4}") - $environment = hiera('environment') + $environment = hiera('environment', undef) if $environment == 'local' { -- cgit v1.2.3