diff options
author | Lamont Granquist <lamont@opscode.com> | 2012-12-11 15:53:26 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@opscode.com> | 2012-12-19 15:56:12 -0800 |
commit | b15ad11e243ff3d3aae60fa4dab8cd6a2268de28 (patch) | |
tree | 91c05a1b057fc783a4442221f0a3e16ab1806f82 | |
parent | a7b6225369b1bb402e1aaae2875488a0affa6bfe (diff) | |
download | chef-b15ad11e243ff3d3aae60fa4dab8cd6a2268de28.tar.gz |
allow using unabbreviated hives as well
-rw-r--r-- | lib/chef/win32/registry.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/chef/win32/registry.rb b/lib/chef/win32/registry.rb index 147731a540..4d369b6070 100644 --- a/lib/chef/win32/registry.rb +++ b/lib/chef/win32/registry.rb @@ -299,10 +299,15 @@ class Chef hive = { "HKLM" => ::Win32::Registry::HKEY_LOCAL_MACHINE, + "HKEY_LOCAL_MACHINE" => ::Win32::Registry::HKEY_LOCAL_MACHINE, "HKU" => ::Win32::Registry::HKEY_USERS, + "HKEY_USERS" => ::Win32::Registry::HKEY_USERS, "HKCU" => ::Win32::Registry::HKEY_CURRENT_USER, + "HKEY_CURRENT_USER" => ::Win32::Registry::HKEY_CURRENT_USER, "HKCR" => ::Win32::Registry::HKEY_CLASSES_ROOT, - "HKCC" => ::Win32::Registry::HKEY_CURRENT_CONFIG + "HKEY_CLASSES_ROOT" => ::Win32::Registry::HKEY_CLASSES_ROOT, + "HKCC" => ::Win32::Registry::HKEY_CURRENT_CONFIG, + "HKEY_CURRENT_CONFIG" => ::Win32::Registry::HKEY_CURRENT_CONFIG, }[hive_name] raise Chef::Exceptions::Win32RegHiveMissing, "Registry Hive #{hive_name} does not exist" unless hive |