summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2021-04-22 10:59:24 -0700
committerMatt Wrock <matt@mattwrock.com>2021-04-22 10:59:24 -0700
commit657553c395d080817731e37ca43ef22ed1c13678 (patch)
treefc2209ee617334804c7d7f0fd595713d6befc8b9
parent262d718d8bb0db5bec311ac1b8ecd07e869be364 (diff)
downloadchef-auto_reg.tar.gz
fix uninitialized Win32 constantauto_reg
Signed-off-by: Matt Wrock <matt@mattwrock.com>
-rw-r--r--lib/chef/win32/registry.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/win32/registry.rb b/lib/chef/win32/registry.rb
index 50243172b0..4f7f2b2d52 100644
--- a/lib/chef/win32/registry.rb
+++ b/lib/chef/win32/registry.rb
@@ -22,7 +22,9 @@ require_relative "../mixin/wide_string"
if RUBY_PLATFORM.match?(/mswin|mingw32|windows/)
require "win32/api"
- Win32.autoload :Registry, File.expand_path("../monkey_patches/win32/registry", __dir__)
+ module Win32
+ autoload :Registry, File.expand_path("../monkey_patches/win32/registry", __dir__)
+ end
require_relative "api/registry"
end