lib/facter/facts/linux/kernelmajversion.rb in facter-4.5.2 vs lib/facter/facts/linux/kernelmajversion.rb in facter-4.6.0
- old
+ new
@@ -15,10 +15,10 @@
def major_version(full_version)
versions_split = full_version.split('.')
return versions_split[0] if versions_split.length <= 1
- versions_split[0] + '.' + versions_split[1]
+ "#{versions_split[0]}.#{versions_split[1]}"
end
end
end
end