We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5edb675 commit ad2a8baCopy full SHA for ad2a8ba
1 file changed
lib/facter/pip_version.rb
@@ -5,7 +5,7 @@
5
Facter.add("pip_version") do
6
has_weight 100
7
setcode do
8
- /^pip (\d+\.\d+\.?\d*).*$/.match(Facter::Util::Resolution.exec('pip --version'))[1]
+ /^pip (\d+\.\d+\.?\d*).*$/.match(Facter::Util::Resolution.exec('pip --version 2>/dev/null'))[1]
9
end
10
11
0 commit comments