Skip to content

Commit

Permalink
Fixes #37048 - Ruby 3 compatible kwarg handling (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamruzicka authored Jan 16, 2024
1 parent 3ed3bd6 commit 5c2d1fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/services/foreman_tasks/proxy_selector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ def strategies
[:subnet, :fallback, :global]
end

def available_proxies(*_args)
def available_proxies(*_args, **_kwargs)
raise NotImplementedError
end

def determine_proxy(*args)
available_proxies = self.available_proxies(*args)
def determine_proxy(*args, **kwargs)
available_proxies = self.available_proxies(*args, **kwargs)
return :not_defined if available_proxies.empty? || available_proxies.values.all?(&:empty?)
proxy = nil

Expand Down

0 comments on commit 5c2d1fb

Please sign in to comment.