summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlamont-granquist <lamont@scriptkiddie.org>2014-07-09 17:11:46 -0700
committerlamont-granquist <lamont@scriptkiddie.org>2014-07-09 17:11:46 -0700
commit3b18b074b792ec81acd989cfe609fd23476d5314 (patch)
tree248c3f1c83d6d937bde001bca0c073123c7959df
parent8f717cec19e901a7c42d3d7da7203cdf53150e56 (diff)
parentff3e108b04bc1617462a0b76b282253f116920f2 (diff)
downloadohai-3b18b074b792ec81acd989cfe609fd23476d5314.tar.gz
Merge pull request #361 from opscode/lcg/aix-newlines-fix
fix newlines in platform/platform_family
-rw-r--r--lib/ohai/plugins/aix/kernel.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ohai/plugins/aix/kernel.rb b/lib/ohai/plugins/aix/kernel.rb
index b8ce0acf..91fb58cd 100644
--- a/lib/ohai/plugins/aix/kernel.rb
+++ b/lib/ohai/plugins/aix/kernel.rb
@@ -22,10 +22,10 @@ Ohai.plugin(:Kernel) do
collect_data(:aix) do
kernel Mash.new
- kernel[:name] = shell_out("uname -s").stdout.downcase
- kernel[:release] = shell_out("uname -r").stdout
- kernel[:version] = shell_out("uname -v").stdout
- kernel[:machine] = shell_out("uname -p").stdout
+ kernel[:name] = shell_out("uname -s").stdout.split($/)[0].downcase
+ kernel[:release] = shell_out("uname -r").stdout.split($/)[0]
+ kernel[:version] = shell_out("uname -v").stdout.split($/)[0]
+ kernel[:machine] = shell_out("uname -p").stdout.split($/)[0]
kernel[:modules] = Mash.new
end
end