diff options
author | Tim Smith <tsmith@chef.io> | 2018-12-04 16:53:23 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-12-04 16:53:23 -0800 |
commit | 212d5ce76c42154d7001a84590f3a3dbcc1a7431 (patch) | |
tree | df093d964aa9a86e8d4786ab3e6ccb2b5b490426 | |
parent | ea071fc7ed36ebab883059e33025859f5f50ec68 (diff) | |
download | ohai-212d5ce76c42154d7001a84590f3a3dbcc1a7431.tar.gz |
Make SLED be part of the suse platform_familysled_round_2
SUSE Linux Enterprise Desktop is SLES with a UI. It's SUSE platform_family.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/ohai/plugins/linux/platform.rb | 2 | ||||
-rw-r--r-- | 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 |