Skip to content

Commit 63da27e

Browse files
David MaloneyDavid Maloney
authored andcommitted
add missing HKLM root to regkey
the chevkm windows psot module had HKLM missing from the front of one of it's reg key paths. This was missed in Rails 3 due to the error being swallowed unexpectedly. in rails 4 we actually see this cause a stack trace MSP-12384
1 parent c666d04 commit 63da27e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/checkvm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def xenchk(session)
251251
end
252252
end
253253
if not vm
254-
srvvals = registry_enumkeys('HARDWARE\ACPI\FADT')
254+
srvvals = registry_enumkeys('HKLM\HARDWARE\ACPI\FADT')
255255
if srvvals and srvvals.include?("Xen")
256256
vm = true
257257
end

0 commit comments

Comments
 (0)