From 6a0e9cc40341d4242ad6d7b91f83e5f39f1c0d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Wed, 18 Feb 2015 15:16:55 +0100 Subject: [PATCH] Check if $is_pe exists before using it $is_pe is not a standard fact, so the current code fails with strict_variables on. --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 78c408149..fa05a1004 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -199,7 +199,7 @@ $command = strip(regsubst("${script_command} -o \"${fragdir}/${concat_name}\" -d \"${fragdir}\" ${warnflag} ${forceflag} ${orderflag} ${newlineflag}", '\s+', ' ', 'G')) # make sure ruby is in the path for PE - if $::is_pe { + if defined('$is_pe') and $::is_pe { if $::kernel == 'windows' { $command_path = "${::env_windows_installdir}/bin:${::path}" } else {