diff --git a/lib/facter/python_version.rb b/lib/facter/python_version.rb index 8fe91636..c4ffa45c 100644 --- a/lib/facter/python_version.rb +++ b/lib/facter/python_version.rb @@ -2,7 +2,7 @@ def get_python_version(executable) if Facter::Util::Resolution.which(executable) - results = Facter::Util::Resolution.exec("#{executable} -V 2>&1").match(/^.*(\d+\.\d+\.\d+)$/) + results = Facter::Util::Resolution.exec("#{executable} -V 2>&1").match(/^.*(\d+\.\d+\.\d+\+?)$/) if results results[1] end