summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorJarl Stefansson <jarl@sdelements.com>2014-01-03 10:09:56 -0500
committerJarl Stefansson <jarl@sdelements.com>2014-01-03 10:09:56 -0500
commitd8a72b218455de66b59af0229ebae2e708538e77 (patch)
treea878bc48149008c950d2fc5beab9f53da759c37b /manifests
parent1087abd3ba21bcb5b33f7c40f07724c1b9a093eb (diff)
Fix testing for existing virtual environment
Diffstat (limited to 'manifests')
-rw-r--r--manifests/virtualenv.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/virtualenv.pp b/manifests/virtualenv.pp
index 7a548a6..f3ca1ce 100644
--- a/manifests/virtualenv.pp
+++ b/manifests/virtualenv.pp
@@ -132,7 +132,7 @@ define python::virtualenv (
path => $path,
cwd => "/tmp",
environment => $environment,
- unless => "grep '^[ \t]*VIRTUAL_ENV=[\'\"]*/tmp[\"\']*[ \t]*$' ${venv_dir}/bin/activate", #Unless activate exists and VIRTUAL_ENV is correct we re-create the virtualenv
+ 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
}
if $requirements {