diff options
author | Jarl Stefansson <jarl@sdelements.com> | 2014-01-07 14:25:42 -0500 |
---|---|---|
committer | Jarl Stefansson <jarl@sdelements.com> | 2014-01-07 14:25:42 -0500 |
commit | 25d7203f8c7c152dcc4ecd75569effebee9ba25a (patch) | |
tree | 7042612efa2d05e277bd5a8575bc70d44817031a | |
parent | fae8ae4476142112db877470fe6d374c0e63acc9 (diff) |
Fix Python version detection, stderr to stdout
-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 6b88ee9..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 2>/dev/null'))[1] + /^.*(\d+\.\d+\.\d+)$/.match(Facter::Util::Resolution.exec('python -V 2>&1'))[1] end end |