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 52a2480 commit 3782ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ohai/mixin/network_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Win32
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

View workflow job for this annotation

GitHub Actions / chefstyle

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

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

View workflow job for this annotation

GitHub Actions / chefstyle

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

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

View workflow job for this annotation

GitHub Actions / chefstyle

Lint/Void: Variable Registry used in void context.
Expand Down

0 comments on commit 3782ab7

Please sign in to comment.