diff --git a/app/services/foreman_tasks/proxy_selector.rb b/app/services/foreman_tasks/proxy_selector.rb index 597800bd7..162c87cb1 100644 --- a/app/services/foreman_tasks/proxy_selector.rb +++ b/app/services/foreman_tasks/proxy_selector.rb @@ -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