Skip to content

Commit

Permalink
Debugging now, adding puts statements
Browse files Browse the repository at this point in the history
Signed-off-by: John <[email protected]>
  • Loading branch information
johnmccrae committed Mar 21, 2024
1 parent 7569b9d commit a9b9f4e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ohai/mixin/network_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require "socket" unless defined?(Socket)
require "resolv" unless defined?(Resolv)

puts "I am in the network helper"
puts "[1] - I am in the network helper"

if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
puts "OOh, just about to load the monkey-patch"
Expand Down
2 changes: 1 addition & 1 deletion lib/ohai/monkey_patches/win32/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
module Win32
class Registry

puts "I am actually inside the monkey patch now, doing stuff"
puts "[2] - I am actually inside the monkey patch now, doing stuff"

# ::Win32::Registry#export_string is used when enumerating child
# keys and values and re encodes a UTF-16LE to the local codepage.
Expand Down
2 changes: 2 additions & 0 deletions lib/ohai/plugins/azure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def has_reddog_dhcp_domain?
def tcp_ip_dhcp_domain
return unless RUBY_PLATFORM.match?(/mswin|mingw32|windows/)

puts "[3] - I am in the azure.rb file"

require "win32/registry" unless defined?(Win32::Registry)

begin
Expand Down
1 change: 1 addition & 0 deletions lib/ohai/plugins/packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def collect_programs_from_registry_key(repo, key_path)
end

collect_data(:windows) do
puts "[4] - I am in the packages.rb file"
require "win32/registry" unless defined?(Win32::Registry)
packages Mash.new
collect_programs_from_registry_key(Win32::Registry::HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Uninstall')
Expand Down

0 comments on commit a9b9f4e

Please sign in to comment.