Skip to content

Commit e54fb37

Browse files
committed
test: output log
1 parent 956f50f commit e54fb37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/pyvenv.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@
9494
}
9595

9696
exec { "python_virtualenv_${venv_dir}":
97-
command => "${virtualenv_cmd} --clear ${system_pkgs_flag} ${prompt_arg} ${venv_dir} && ${pip_cmd} --log ${venv_dir}/pip.log install ${pip_upgrade} && ${pip_cmd} --log ${venv_dir}/pip.log install --upgrade setuptools",
97+
command => "${virtualenv_cmd} --clear ${system_pkgs_flag} ${prompt_arg} ${venv_dir} && ${pip_cmd} --log ${venv_dir}/pip.log install ${pip_upgrade} && cat ${venv_dir}/pip.log && ${pip_cmd} --log ${venv_dir}/pip.log install --upgrade setuptools && cat ${venv_dir}/pip.log",
9898
user => $owner,
9999
creates => "${venv_dir}/bin/activate",
100100
path => $_path,
101101
cwd => '/tmp',
102102
environment => $environment,
103103
timeout => 600,
104-
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
104+
unless => "grep '^[\\t ]*VIRTUAL_ENV=[\\\\'\\\"]*${venv_dir}[\\\"\\\\'][\\t ]*$' ${venv_dir}/bin/activate && cat ${venv_dir}/pip.log", #Unless activate exists and VIRTUAL_ENV is correct we re-create the virtualenv
105105
require => File[$venv_dir],
106106
}
107107
} elsif $ensure == 'absent' {

0 commit comments

Comments
 (0)