summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/facter/python_version.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/python_version.rb b/lib/facter/python_version.rb
index a2bdb26..6b88ee9 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>/dev/null'))[1]
end
end