summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ohai/plugins/linux/platform.rb1
-rw-r--r--spec/unit/plugins/linux/platform_spec.rb5
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/ohai/plugins/linux/platform.rb b/lib/ohai/plugins/linux/platform.rb
index a9de8d54..5377bdcf 100644
--- a/lib/ohai/plugins/linux/platform.rb
+++ b/lib/ohai/plugins/linux/platform.rb
@@ -30,6 +30,7 @@ Ohai.plugin(:Platform) do
"ol" => "oracle",
"sled" => "suse",
"sles" => "suse",
+ "sles_sap" => "suse",
"opensuse-leap" => "opensuseleap",
"xenenterprise" => "xenserver",
"cumulus-linux" => "cumulus",
diff --git a/spec/unit/plugins/linux/platform_spec.rb b/spec/unit/plugins/linux/platform_spec.rb
index cf360ebe..83ad1199 100644
--- a/spec/unit/plugins/linux/platform_spec.rb
+++ b/spec/unit/plugins/linux/platform_spec.rb
@@ -101,6 +101,11 @@ describe Ohai::System, "Linux plugin platform" do
expect(plugin.platform_id_remap("sled")).to eq("suse")
end
+ # https://github.com/chef/os_release/blob/master/sles_sap_12_3
+ it "returns suse for sles_sap os-release id" do
+ expect(plugin.platform_id_remap("sles_sap")).to eq("suse")
+ end
+
# https://github.com/chef/os_release/blob/master/sles_15_0
it "returns suse for sles os-release id" do
expect(plugin.platform_id_remap("sles")).to eq("suse")