Closed maltewhiite closed 2 years ago
argparse seems to support Python up to 3.4. Project was abandoned upstream, see: https://github.com/ThomasWaldmann/argparse/
Conflict with argparse of stdlib?
@smortex
Thanks. Resolved my issue by just doing like so:
# PROMETHEUS
package { ['regex', 'configparser', 'prometheus-client', ]:
ensure => installed,
provider => pip3,
install_options => '-q',
}
We are using Python 2.7.5, so Argparse was supported natively, as you said. I was not aware. Thanks.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
Package[argparse]/ensure: created (corrective)
on every run of puppetWhat behaviour did you expect instead
That because the package is installed, it won't try to install it every time.
Any additional information you'd like to impart
Please make it so pip3 provider for packages, doesn't trigger a
Package[argparse]/ensure: created (corrective)
line every time. It is bad for our foreman monitoring. The hosts never reach a stable state. They always have: Hosts that had performed modifications without errorIf I run "pip3 install argparse" plainly, this is the result: