From 212d5ce76c42154d7001a84590f3a3dbcc1a7431 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 4 Dec 2018 16:53:23 -0800 Subject: Make SLED be part of the suse platform_family SUSE Linux Enterprise Desktop is SLES with a UI. It's SUSE platform_family. Signed-off-by: Tim Smith --- lib/ohai/plugins/linux/platform.rb | 2 +- spec/unit/plugins/linux/platform_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ohai/plugins/linux/platform.rb b/lib/ohai/plugins/linux/platform.rb index 8e514ec7..46299e6f 100644 --- a/lib/ohai/plugins/linux/platform.rb +++ b/lib/ohai/plugins/linux/platform.rb @@ -154,7 +154,7 @@ Ohai.plugin(:Platform) do "rhel" when /amazon/ "amazon" - when /suse/, /sles/, /opensuse/, /opensuseleap/ + when /suse/, /sles/, /opensuse/, /opensuseleap/, /sled/ "suse" when /fedora/, /pidora/, /arista_eos/ # In the broadest sense: RPM-based, fedora-derived distributions which are not strictly re-compiled RHEL (if it uses RPMs, and smells more like redhat and less like diff --git a/spec/unit/plugins/linux/platform_spec.rb b/spec/unit/plugins/linux/platform_spec.rb index 5b08a030..ca6ab298 100644 --- a/spec/unit/plugins/linux/platform_spec.rb +++ b/spec/unit/plugins/linux/platform_spec.rb @@ -170,7 +170,7 @@ describe Ohai::System, "Linux plugin platform" do end end - %w{suse sles opensuse opensuseleap}.each do |p| + %w{suse sles opensuse opensuseleap sled}.each do |p| it "returns suse for #{p} platform_family" do expect(plugin.platform_family_from_platform(p)).to eq("suse") end -- cgit v1.2.1