regex modification : set the fact "pkgng_supported" to "true" for FreeBSD 9.x and 10.x

This commit is contained in:
Brice Lopez 2013-10-14 14:21:50 +02:00
parent 51f0f75a30
commit 7522070599
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ Facter.add("pkgng_supported") do
setcode do
kernel = Facter.value('kernelversion')
if kernel =~ /^(9|10)/
if kernel =~ /^(9|10)(\.[0-9])?/
"true"
end
end