diff --git a/manifests/virtualenv.pp b/manifests/virtualenv.pp index eac4476e..9dc7fcd9 100644 --- a/manifests/virtualenv.pp +++ b/manifests/virtualenv.pp @@ -116,9 +116,9 @@ # --system-site-packages flag, default off for prior versions # Prior to version 1.7 the default was equal to --system-site-packages # and the flag --no-site-packages had to be passed to do the opposite - if (( versioncmp($::virtualenv_version,'1.7') > 0 ) and ( $systempkgs == true )) { + if (( versioncmp("${::virtualenv_version}",'1.7') > 0 ) and ( $systempkgs == true )) { # lint:ignore:only_variable_string $system_pkgs_flag = '--system-site-packages' - } elsif (( versioncmp($::virtualenv_version,'1.7') < 0 ) and ( $systempkgs == false )) { + } elsif (( versioncmp("${::virtualenv_version}",'1.7') < 0 ) and ( $systempkgs == false )) { # lint:ignore:only_variable_string $system_pkgs_flag = '--no-site-packages' } else { $system_pkgs_flag = $systempkgs ? {