From 3e8939f9d66bdd0c6d9e3e57179d128e9a831b15 Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Tue, 28 Jun 2016 11:14:47 +0200 Subject: [PATCH] Ensure we compare with a valid file in log fix mod_enable_dir is not necessarily defined under all the operating systems. For example, for Redhat it has undef value. It is causing puppet manifest to fail, so just execute that fix when that directory has some value. Change-Id: Iab56636151ac4d7da24a5a5ce18356b81adad832 --- manifests/logs.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/logs.pp b/manifests/logs.pp index 55d4013..40bdf05 100644 --- a/manifests/logs.pp +++ b/manifests/logs.pp @@ -38,5 +38,7 @@ class infracloud::logs( } # Temporary workaround until https://github.com/puppetlabs/puppetlabs-apache/pull/1388 is merged and released - File[$::apache::mod_enable_dir] -> Exec["syntax verification for ${vhost_name}"] + if $::apache::mod_enable_dir != undef { + File[$::apache::mod_enable_dir] -> Exec["syntax verification for ${vhost_name}"] + } }