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 375 forks source link

Fix a reassigned variable #497

Closed SaschaDoering closed 4 years ago

SaschaDoering commented 5 years ago

This occurred when $ensure was set to 'absent'. Then the variable used for the title of the exec resource was assigned twice, resulting in an error.

Pull Request (PR) description

I solved it via a variable to avoid having to set the title in several places. Of course, I can also put the title of the exec resource into another variable if the syntax there looks too weird. Please let me know if I should do this.

This Pull Request (PR) fixes the following issues

Fixes #496