diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-10-21 15:07:21 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-10-21 15:07:21 -0700 |
commit | 199add424c4406e059930cf92fc6cd07428d118d (patch) | |
tree | ffb803cdcb1271bc19f649d29e6635d6de1da3d8 | |
parent | f9e4ca0cc69abf8a6bbc3c7c6ed97765019d3d15 (diff) | |
download | ohai-199add424c4406e059930cf92fc6cd07428d118d.tar.gz |
This might be a dirty thing to do
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | lib/ohai/plugins/packages.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/packages.rb b/lib/ohai/plugins/packages.rb index e9e74909..4228fb09 100644 --- a/lib/ohai/plugins/packages.rb +++ b/lib/ohai/plugins/packages.rb @@ -136,7 +136,7 @@ Ohai.plugin(:Packages) do collect_programs_from_registry_key(Win32::Registry::HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Uninstall') # on 64 bit systems, 32 bit programs are stored here moved before HKEY_CURRENT_USER otherwise it is not collected (impacts both ohai 16 & 17) collect_programs_from_registry_key(Win32::Registry::HKEY_LOCAL_MACHINE, 'Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall') - collect_programs_from_registry_key(Win32::Registry::HKEY_CURRENT_USER, 'Software\Microsoft\Windows\CurrentVersion\Uninstall') + collect_programs_from_registry_key(Win32::Registry::HKEY_CURRENT_USER, 'Software\Microsoft\Windows\CurrentVersion\Uninstall') rescue nil end collect_data(:aix) do |