diff options
Diffstat (limited to 'lib/ohai/plugins/linux/kernel.rb')
-rw-r--r-- | lib/ohai/plugins/linux/kernel.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/linux/kernel.rb b/lib/ohai/plugins/linux/kernel.rb index 47a83569..c2dd3e45 100644 --- a/lib/ohai/plugins/linux/kernel.rb +++ b/lib/ohai/plugins/linux/kernel.rb @@ -21,7 +21,7 @@ Ohai.plugin do collect_data do so = shell_out("uname -o") - kernel[:os] = so.stdout.split($/)[0] + kernel[:os] = so.stdout.split(/\r?\n/)[0] kext = Mash.new so = shell_out("env lsmod") |