diff options
author | Tim Smith <tsmith@chef.io> | 2020-11-18 13:09:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 13:09:52 -0800 |
commit | 631b68882275892b7bd509cda1a9b734cf92cf2d (patch) | |
tree | b0dfb8024a2954974d90e521eaa4612278b4f224 | |
parent | c91d99b662d27bbf5ea680f9a5c8ca583be6b7fc (diff) | |
parent | 5a2ed2e6876245d021d62b884b1c0083b56921cf (diff) | |
download | ohai-631b68882275892b7bd509cda1a9b734cf92cf2d.tar.gz |
Merge pull request #1575 from chef/aix_kernel
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/ohai/plugins/aix/platform.rb | 4 | ||||
-rw-r--r-- | spec/unit/plugins/aix/platform_spec.rb | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/ohai/plugins/aix/platform.rb b/lib/ohai/plugins/aix/platform.rb index 10e67030..4dae93f6 100644 --- a/lib/ohai/plugins/aix/platform.rb +++ b/lib/ohai/plugins/aix/platform.rb @@ -23,8 +23,8 @@ Ohai.plugin(:Platform) do depends "kernel" collect_data(:aix) do - platform kernel[:name] + platform "aix" + platform_family "aix" platform_version [kernel[:version], kernel[:release]].join(".") - platform_family platform end end diff --git a/spec/unit/plugins/aix/platform_spec.rb b/spec/unit/plugins/aix/platform_spec.rb index 99ef56b1..db9a2389 100644 --- a/spec/unit/plugins/aix/platform_spec.rb +++ b/spec/unit/plugins/aix/platform_spec.rb @@ -18,12 +18,11 @@ require "spec_helper" -describe Ohai::System, "Aix plugin platform" do +describe Ohai::System, "AIX plugin platform" do before do @plugin = get_plugin("aix/platform") allow(@plugin).to receive(:collect_os).and_return(:aix) kernel = Mash.new - kernel[:name] = "aix" kernel[:version] = "7" kernel[:release] = "1" allow(@plugin).to receive(:kernel).and_return(kernel) |