Skip to content

Commit

Permalink
Compare $::is_pe as bool, not string
Browse files Browse the repository at this point in the history
stdlib now provides an $::is_pe fact, which defaults to "false".
When compared as a string, it is evaluated to true.
  • Loading branch information
raphink committed Jun 19, 2015
1 parent 130a334 commit 17b836b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,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 defined('$is_pe') and $::is_pe {
if defined('$is_pe') and str2bool("${::is_pe}") { # lint:ignore:only_variable_string
if $::kernel == 'windows' {
$command_path = "${::env_windows_installdir}/bin:${::path}"
} else {
Expand Down

0 comments on commit 17b836b

Please sign in to comment.