summaryrefslogtreecommitdiff
path: root/lib/facter
diff options
context:
space:
mode:
authorSergey Stankevich <stankevich@users.noreply.github.com>2014-01-20 06:13:11 -0800
committerSergey Stankevich <stankevich@users.noreply.github.com>2014-01-20 06:13:11 -0800
commit28c08f47ec6fce17f9f3e80385ed7e517fb1661b (patch)
tree491d582621eb175dc1113313cc2820d51c3faf65 /lib/facter
parent5edb67512977e76b7696c4a06b65fdeded7ae444 (diff)
parentad2a8ba8081ee05a5b2abfb8eb813e8c6f103826 (diff)
Merge pull request #56 from vholer/master
Drop stderr in pip --version
Diffstat (limited to 'lib/facter')
-rw-r--r--lib/facter/pip_version.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/pip_version.rb b/lib/facter/pip_version.rb
index 131d1f9..bc725db 100644
--- a/lib/facter/pip_version.rb
+++ b/lib/facter/pip_version.rb
@@ -5,7 +5,7 @@ pkg = Puppet::Type.type(:package).new(:name => "python-pip")
Facter.add("pip_version") do
has_weight 100
setcode do
- /^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]
end
end