summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-12-04 16:52:39 -0800
committerTim Smith <tsmith@chef.io>2018-12-04 16:52:39 -0800
commitea071fc7ed36ebab883059e33025859f5f50ec68 (patch)
treed0575e84cf8f3ec06590bb4400c6e09a41f2ad5b
parent8e3ff7e496ecd1f5890e27f552741b731f72b34c (diff)
downloadohai-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.rb1
-rw-r--r--spec/unit/plugins/linux/platform_spec.rb5
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")