From 5b8b87cd5541ffdd2acf674d88bb82712fc4fede Mon Sep 17 00:00:00 2001 From: Dan Sajner Date: Tue, 5 Jan 2016 15:01:39 -0500 Subject: [PATCH] Force virtualenv_version to be a string. --- manifests/virtualenv.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/virtualenv.pp b/manifests/virtualenv.pp index eac4476e..0a0a0cad 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:empty_string_assignment $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:empty_string_assignment $system_pkgs_flag = '--no-site-packages' } else { $system_pkgs_flag = $systempkgs ? {