Skip to content

Commit

Permalink
Use keyword arguments in resource_scope
Browse files Browse the repository at this point in the history
In Foreman 3.10 the args and kwargs handling was made more explicit.
  • Loading branch information
ekohl authored and nofaralfasi committed Mar 21, 2024
1 parent 38676da commit 214cb25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/ui_ansible_roles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def index
end

# restore original method from find_common to ignore resource nesting
def resource_scope(options = {})
@resource_scope ||= scope_for(resource_class, options)
def resource_scope(**kwargs)
@resource_scope ||= scope_for(resource_class, **kwargs)
end
end
2 changes: 1 addition & 1 deletion lib/foreman_ansible/register.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

Foreman::Plugin.register :foreman_ansible do
requires_foreman '>= 3.8.1'
requires_foreman '>= 3.10.0'
register_gettext

settings do
Expand Down

0 comments on commit 214cb25

Please sign in to comment.