lib/ohai/plugins/linux/platform.rb in ohai-0.6.8 vs lib/ohai/plugins/linux/platform.rb in ohai-0.6.10.rc.1

- old
+ new

@@ -31,9 +31,12 @@ # platform [ and platform_version ? ] should be lower case to avoid dealing with RedHat/Redhat/redhat matching if lsb[:id] =~ /RedHat/i platform "redhat" platform_version lsb[:release] +elsif lsb[:id] =~ /Amazon/i + platform "amazon" + platform_version lsb[:release] elsif lsb[:id] platform lsb[:id].downcase platform_version lsb[:release] elsif File.exists?("/etc/debian_version") platform "debian"