diff options
author | Tim Smith <tsmith@chef.io> | 2018-12-03 13:25:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-03 13:25:14 -0800 |
commit | f5eaabc6892c20d0ea0c584e0ec621a14e7a1bd0 (patch) | |
tree | d16dee641543bcaa68adf5d361b61340f1ea4cd0 | |
parent | 8c575e57bf75b9138a742648174931dfc8827c9c (diff) | |
parent | 4f2dfcbb9ac16697b62392a361b819f7b535b720 (diff) | |
download | ohai-f5eaabc6892c20d0ea0c584e0ec621a14e7a1bd0.tar.gz |
Merge pull request #1313 from chef/sles_sap
platform: Identify sles_sap as the suse platform
-rw-r--r-- | lib/ohai/plugins/linux/platform.rb | 1 | ||||
-rw-r--r-- | spec/unit/plugins/linux/platform_spec.rb | 5 |
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") |