Skip to content

Commit 17b836b

Browse files
committed
Compare $::is_pe as bool, not string
stdlib now provides an $::is_pe fact, which defaults to "false". When compared as a string, it is evaluated to true.
1 parent 130a334 commit 17b836b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
$command = strip(regsubst("${script_command} -o \"${fragdir}/${concat_name}\" -d \"${fragdir}\" ${warnflag} ${forceflag} ${orderflag} ${newlineflag}", '\s+', ' ', 'G'))
206206

207207
# make sure ruby is in the path for PE
208-
if defined('$is_pe') and $::is_pe {
208+
if defined('$is_pe') and str2bool("${::is_pe}") { # lint:ignore:only_variable_string
209209
if $::kernel == 'windows' {
210210
$command_path = "${::env_windows_installdir}/bin:${::path}"
211211
} else {

0 commit comments

Comments
 (0)