diff options
author | Tim Smith <tsmith@chef.io> | 2018-12-03 13:14:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-03 13:14:55 -0800 |
commit | 2951350d54bf59da2fe92203ee1db7370f39c60d (patch) | |
tree | 896e64598cf987d1729fc3e377a038cc1ce55fbc | |
parent | 878d3ff1eb9998ee921d599aafed27ded235695e (diff) | |
parent | 11c3c1ae45b0247632ccc0af10d899843cc0e5ed (diff) | |
download | ohai-2951350d54bf59da2fe92203ee1db7370f39c60d.tar.gz |
Merge pull request #1316 from chef/mangeia
Add mangeia platform with madriva platform_family
-rw-r--r-- | lib/ohai/plugins/linux/platform.rb | 2 | ||||
-rw-r--r-- | spec/unit/plugins/linux/platform_spec.rb | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/ohai/plugins/linux/platform.rb b/lib/ohai/plugins/linux/platform.rb index 96beb4cf..40d14eba 100644 --- a/lib/ohai/plugins/linux/platform.rb +++ b/lib/ohai/plugins/linux/platform.rb @@ -173,6 +173,8 @@ Ohai.plugin(:Platform) do "alpine" when /clearlinux/ "clearlinux" + when /mangeia/ + "mandriva" end end diff --git a/spec/unit/plugins/linux/platform_spec.rb b/spec/unit/plugins/linux/platform_spec.rb index 5560fc84..6260a610 100644 --- a/spec/unit/plugins/linux/platform_spec.rb +++ b/spec/unit/plugins/linux/platform_spec.rb @@ -187,6 +187,10 @@ describe Ohai::System, "Linux plugin platform" do expect(plugin.platform_family_from_platform(same_name)).to eq(same_name) end end + + it "returns mandriva for mangeia platform" do + expect(plugin.platform_family_from_platform("mangeia")).to eq("mandriva") + end end describe "on system with /etc/os-release" do |