Bug #35228
closedCockpit integration broken in nightlies and 3.3
Description
2022-07-15T12:10:09 [I|app|9a60f0c6] Backtrace for 'wrong number of arguments (given 1, expected 2)' error (ArgumentError): wrong number of arguments (given 1, expected 2)
9a60f0c6 | /usr/share/foreman/app/models/smart_proxy.rb:104:in `has_capability?'
9a60f0c6 | /usr/share/gems/gems/foreman_remote_execution-7.1.0/app/services/remote_execution_proxy_selector.rb:10:in `block (2 levels) in available_proxies'
9a60f0c6 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/delegation.rb:88:in `each'
9a60f0c6 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/delegation.rb:88:in `each'
9a60f0c6 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/query_methods.rb:269:in `select'
9a60f0c6 | /usr/share/gems/gems/activerecord-6.1.6.1/lib/active_record/relation/query_methods.rb:269:in `select'
9a60f0c6 | /usr/share/gems/gems/foreman_remote_execution-7.1.0/app/services/remote_execution_proxy_selector.rb:10:in `block in available_proxies'
9a60f0c6 | /usr/share/gems/gems/foreman_remote_execution-7.1.0/app/services/remote_execution_proxy_selector.rb:9:in `each'
9a60f0c6 | /usr/share/gems/gems/foreman_remote_execution-7.1.0/app/services/remote_execution_proxy_selector.rb:9:in `reduce'
9a60f0c6 | /usr/share/gems/gems/foreman_remote_execution-7.1.0/app/services/remote_execution_proxy_selector.rb:9:in `available_proxies'
9a60f0c6 | /usr/share/gems/gems/foreman-tasks-6.0.2/app/services/foreman_tasks/proxy_selector.rb:19:in `determine_proxy'
9a60f0c6 | /usr/share/gems/gems/foreman_remote_execution-7.1.0/app/models/ssh_execution_provider.rb:71:in `proxy_for_cockpit'
9a60f0c6 | /usr/share/gems/gems/foreman_remote_execution-7.1.0/app/models/ssh_execution_provider.rb:40:in `ssh_params'
9a60f0c6 | /usr/share/gems/gems/foreman_remote_execution-7.1.0/app/controllers/cockpit_controller.rb:5:in `host_ssh_params'