lib/ohai/plugins/kernel.rb in ohai-16.4.12 vs lib/ohai/plugins/kernel.rb in ohai-16.5.0
- old
+ new
@@ -2,11 +2,11 @@
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Benjamin Black (<nostromo@gmail.com>)
# Author:: Bryan McLellan (<btm@loftninjas.org>)
# Author:: Claire McQuin (<claire@chef.io>)
# Author:: James Gartrell (<jgartrel@gmail.com>)
-# Copyright:: Copyright (c) Chef Software, Inc.
+# Copyright:: Copyright (c) Chef Software Inc.
# Copyright:: Copyright (c) 2009 Bryan McLellan
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -40,10 +40,10 @@
# common *bsd code for collecting modules data
# @return [Mash]
def bsd_modules(path)
modules = Mash.new
- so = shell_out((Ohai.abs_path(path)).to_s)
+ so = shell_out(Ohai.abs_path(path).to_s)
so.stdout.lines do |line|
# 1 7 0xc0400000 97f830 kernel
if line =~ /(\d+)\s+(\d+)\s+([0-9a-fx]+)\s+([0-9a-fx]+)\s+([a-zA-Z0-9\_]+)/
modules[$5] = { size: $4, refcount: $2 }
end