Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monkey Patching Ohai to overcome issues with the Resolv class #1820

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Debugging now, adding puts statements
Signed-off-by: John <[email protected]>
  • Loading branch information
johnmccrae committed Mar 21, 2024
commit d29e60f7f72216f502d149e7c01023cde5cbc39b
1 change: 1 addition & 0 deletions lib/ohai/mixin/network_helper.rb
Original file line number Diff line number Diff line change
@@ -29,8 +29,9 @@
puts "OOH, autoloading the Registry patch"
puts "Here is the contents of the patch"
puts File.expand_path("../../monkey_patches/win32/registry", __dir__)
puts File.expand_path("../../monkey_patches/win32/registry", __FILE__)

Check failure on line 32 in lib/ohai/mixin/network_helper.rb

GitHub Actions / chefstyle

[Correctable] Style/ExpandPathArguments: Use expand_path('../monkey_patches/win32/registry', __dir__) instead of expand_path('../../monkey_patches/win32/registry', __FILE__).
autoload :Registry, File.expand_path("../../monkey_patches/win32/registry", __dir__)
Registry

Check warning on line 34 in lib/ohai/mixin/network_helper.rb

GitHub Actions / chefstyle

Lint/Void: Variable Registry used in void context.
puts "OOH, just finished autoloading the Registry patch"
end
end
Loading