diff options
author | Sergey Stankevich <stankevich@users.noreply.github.com> | 2014-01-07 17:35:22 -0800 |
---|---|---|
committer | Sergey Stankevich <stankevich@users.noreply.github.com> | 2014-01-07 17:35:22 -0800 |
commit | 1f28e67b1754f11406a6b704005559d17b845b62 (patch) | |
tree | 7042612efa2d05e277bd5a8575bc70d44817031a /lib/facter | |
parent | 042f4eed2e15834a3c49abab485e5037ab805ca3 (diff) | |
parent | 25d7203f8c7c152dcc4ecd75569effebee9ba25a (diff) |
Merge pull request #51 from jalli/master
Fix secondary version detection for python and revert back to using /tmp for current working dir during virtualenv install.
Diffstat (limited to 'lib/facter')
-rw-r--r-- | lib/facter/python_version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/python_version.rb b/lib/facter/python_version.rb index a2bdb26..50fef72 100644 --- a/lib/facter/python_version.rb +++ b/lib/facter/python_version.rb @@ -14,7 +14,7 @@ end Facter.add("python_version") do has_weight 100 setcode do - /^.*(\d+\.\d+\.\d+)$/.match(Facter::Util::Resolution.exec('python -V'))[1] + /^.*(\d+\.\d+\.\d+)$/.match(Facter::Util::Resolution.exec('python -V 2>&1'))[1] end end |