Allow semantic version strings with two dot

This commit is contained in:
Phil Friderici 2016-02-15 13:49:24 +01:00
parent 041ad172c1
commit d8f7818134

View File

@ -10,7 +10,7 @@ Facter.add('ssh_version_numeric') do
setcode do
ssh_version = Facter.value(:ssh_version)
if ssh_version
ssh_version.match(/\d+\.\d+/)[0]
ssh_version.match(/(\d+\.\d+\.\d+|\d+\.\d+)/)[0]
end
end
end