summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorJarl Stefansson <jarl.stefansson@gmail.com>2014-01-01 12:44:24 -0500
committerJarl Stefansson <jarl.stefansson@gmail.com>2014-01-01 12:44:24 -0500
commit0b4438b64eb2f24f9aff75116cbefb3fc85b5241 (patch)
treebc1180bc9caf8a96861ac6480687df63a28b8541 /manifests
parent607b527a11657ddd24545ebc33f0c0984d4c0093 (diff)
Fix path for unless statement.
https://github.com/stankevich/puppet-python/issues/46
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 bc7141c..f74cc4f 100644
--- a/manifests/virtualenv.pp
+++ b/manifests/virtualenv.pp
@@ -125,7 +125,7 @@ define python::virtualenv (
path => $path,
cwd => "/tmp",
environment => $environment,
- unless => "grep '^[ \t]*VIRTUAL_ENV=[\'\"]*/tmp[\"\']*[ \t]*$' /tmp/bin/activate", #Unless activate exists and VIRTUAL_ENV is correct we re-create the virtualenv
+ unless => "grep '^[ \t]*VIRTUAL_ENV=[\'\"]*/tmp[\"\']*[ \t]*$' ${venv_dir}/bin/activate", #Unless activate exists and VIRTUAL_ENV is correct we re-create the virtualenv
}
if $requirements {