Skip to content

Commit d8a72b2

Browse files
author
Jarl Stefansson
committed
Fix testing for existing virtual environment
1 parent 1087abd commit d8a72b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

manifests/virtualenv.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
path => $path,
133133
cwd => "/tmp",
134134
environment => $environment,
135-
unless => "grep '^[ \t]*VIRTUAL_ENV=[\'\"]*/tmp[\"\']*[ \t]*$' ${venv_dir}/bin/activate", #Unless activate exists and VIRTUAL_ENV is correct we re-create the virtualenv
135+
unless => "grep '^[ \t]*VIRTUAL_ENV=[\'\"]*${venv_dir}[\"\']*[ \t]*$' ${venv_dir}/bin/activate", #Unless activate exists and VIRTUAL_ENV is correct we re-create the virtualenv
136136
}
137137

138138
if $requirements {

0 commit comments

Comments
 (0)