diff options
author | Sergey Stankevich <stankevich@users.noreply.github.com> | 2014-01-03 23:16:55 -0800 |
---|---|---|
committer | Sergey Stankevich <stankevich@users.noreply.github.com> | 2014-01-03 23:16:55 -0800 |
commit | 45c01b6b018b7fd01119ea592c22cb17be8d4a8d (patch) | |
tree | 941f683c78fc104022970538ad72fe046d932944 /lib | |
parent | 2bab9c9a03cd01450877d897399c68f37fea0ff7 (diff) | |
parent | b5f48bc7cc5861dee404d43eed5a6d327d22c54e (diff) |
Merge pull request #49 from jalli/master
Add compatability/support for pip 1.5 and fix erroneous rebuilds
Diffstat (limited to 'lib')
-rw-r--r-- | lib/facter/pip_version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/pip_version.rb b/lib/facter/pip_version.rb index 48dd0bf..131d1f9 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 - Facter::Util::Resolution.exec('pip --version') + /^pip (\d+\.\d+\.?\d*).*$/.match(Facter::Util::Resolution.exec('pip --version'))[1] end end |