voxpupuli / puppet-python

Puppet module for installing and managing Python, pip, virtualenvs and Gunicorn virtual hosts.
https://forge.puppetlabs.com/puppet/python
Apache License 2.0
199 stars 371 forks source link

Pip ensure absent command ! not found #522

Open negast opened 4 years ago

negast commented 4 years ago

Hello

When setting a pip absent I get following:

Could not evaluate: Could not find command '!'

This prob happens because bash is not used as a shell. I resolved this by changing the unless command to.

https://github.com/voxpupuli/puppet-python/blob/master/manifests/pip.pp line 223 $unless_command = "echo '! ${pip_env} list | grep -i -e \'${grep_regex}\'' | bash"