Skip to content

Commit

Permalink
cops around kwargs policy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock authored and GilbertCherrie committed Jul 7, 2023
1 parent 5d4fff8 commit d40e9f3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/models/mixins/miq_policy_mixin.rb
Expand Up @@ -113,12 +113,8 @@ def check_policy_prevent_callback(*action, _status, _message, result)
if prevented
_log.info(event.attributes["message"])
else
if action.last.kind_of?(Hash)
hsh = action.pop
send(*action, **hsh)
else
send(*action)
end
kwargs = action.extract_options!
send(*action, **kwargs)
end
end

Expand Down

0 comments on commit d40e9f3

Please sign in to comment.