app/lib/actions/katello/repository_set/disable_repository.rb in katello-4.4.2.2 vs app/lib/actions/katello/repository_set/disable_repository.rb in katello-4.5.0.rc1

- old
+ new

@@ -5,12 +5,17 @@ def humanized_name _("Disable") end def plan(product, content, options) - repository = repository_mapper(product, - content, - options).find_repository + if options[:repository_id] + repository = ::Katello::Repository.find(options[:repository_id]) + else + repository = repository_mapper(product, + content, + options).find_repository + end + if repository action_subject(repository) plan_action(Repository::Destroy, repository) else fail ::Katello::Errors::NotFound, _('Repository not found')