diff options
author | Tim Smith <tsmith@chef.io> | 2018-12-04 16:52:39 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-12-04 16:52:39 -0800 |
commit | ea071fc7ed36ebab883059e33025859f5f50ec68 (patch) | |
tree | d0575e84cf8f3ec06590bb4400c6e09a41f2ad5b | |
parent | 8e3ff7e496ecd1f5890e27f552741b731f72b34c (diff) | |
download | ohai-ea071fc7ed36ebab883059e33025859f5f50ec68.tar.gz |
Don't remap SLED to SUSE
I think this was actually the wrong thing to do. We previously detected it as SLED and I think that's actually the right call.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/ohai/plugins/linux/platform.rb | 1 | ||||
-rw-r--r-- | spec/unit/plugins/linux/platform_spec.rb | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/lib/ohai/plugins/linux/platform.rb b/lib/ohai/plugins/linux/platform.rb index eac53d83..8e514ec7 100644 --- a/lib/ohai/plugins/linux/platform.rb +++ b/lib/ohai/plugins/linux/platform.rb @@ -28,7 +28,6 @@ Ohai.plugin(:Platform) do "rhel" => "redhat", "amzn" => "amazon", "ol" => "oracle", - "sled" => "suse", "sles" => "suse", "sles_sap" => "suse", "opensuse-leap" => "opensuseleap", diff --git a/spec/unit/plugins/linux/platform_spec.rb b/spec/unit/plugins/linux/platform_spec.rb index ae6d3f7b..5b08a030 100644 --- a/spec/unit/plugins/linux/platform_spec.rb +++ b/spec/unit/plugins/linux/platform_spec.rb @@ -96,11 +96,6 @@ describe Ohai::System, "Linux plugin platform" do expect(plugin.platform_id_remap("ol")).to eq("oracle") end - # https://github.com/chef/os_release/blob/master/sled_15 - it "returns suse for sled os-release id" 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") |