ManageIQ / manageiq-smartstate

Apache License 2.0
4 stars 36 forks source link

Fix MiqWin32::Software.DecodeProductKey #145

Closed Fryguy closed 4 years ago

Fryguy commented 4 years ago

@chessbyte Please review.

I noticed this when going through the manageiq-gems-pending removals, and stumbled on https://github.com/ManageIQ/manageiq-gems-pending/pull/472. However the search in that PR was incorrect as it wasn't searching the whole org. When I searched the whole org I noticed these 2 callers of base24Decode.

This PR puts the base24_decode code back, and then fixes the callers which were actually broken, adding specs along the way.

Fryguy commented 4 years ago

We've likely not seen this in production because the rescue was catching the missing method and then just moving on.

miq-bot commented 4 years ago

Checked commits https://github.com/Fryguy/manageiq-smartstate/compare/3fea192dc2bf595ade9267a089acfdc30a930956~...8cb311564eb0a8bc1670945200f26cd73816b986 with ruby 2.6.3, rubocop 0.69.0, haml-lint 0.28.0, and yamllint 5 files checked, 2 offenses detected

lib/manageiq/smartstate/util.rb

spec/metadata/util/win32/Win32Software_spec.rb