lib/ohai/plugins/linux/platform.rb in ohai-14.5.4 vs lib/ohai/plugins/linux/platform.rb in ohai-14.6.2

- old
+ new

@@ -289,10 +289,10 @@ # Use os-release (present on all modern linux distros) BUT use old *-release files as fallback. # os-release will only be used if no other *-release file is present. # We have to do this for compatibility reasons, or older OS releases might get different # "platform" or "platform_version" attributes (e.g. SLES12, RHEL7). elsif File.exist?("/etc/os-release") - platform os_release_info["ID"] + platform os_release_info["ID"] == "sles" ? "suse" : os_release_info["ID"] # SLES is wrong. We call it SUSE platform_version os_release_info["VERSION_ID"] # platform_family also does not need to be hardcoded anymore. # This would be the correct way, but we stick with "determine_platform_family" for compatibility reasons. # platform_family os_release_info["ID_LIKE"] end