-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix: make registry_key resource case-insensitive #255
Conversation
Thanks for adding this @alexpop |
@arlimus added fix to this PR |
# convert keys to lower case | ||
return @registy_cache = Hash[@registy_cache.map do |key, value| | ||
[key.downcase, value] | ||
end] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we:
begin
keys = JSON.parse(cmd.stdout)
@registry_cache = ... blah ...
rescue JSON::ParseError => _
@registry_cache = nil
end
@registry_cache
This also avoids a duplicate return statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Thank you @alexpop , this is an awesome addition! Thanks @chris-rock for extending our tests. |
Bugfix: make registry_key resource case-insensitive
Add integration test for
NtlmMinClientSec
Once #254 is fixed, we should add a test for
NTLMMinServerSec