app/lib/actions/katello/repository_set/disable_repository.rb in katello-3.1.0.1 vs app/lib/actions/katello/repository_set/disable_repository.rb in katello-3.2.0.rc1
- old
+ new
@@ -5,15 +5,16 @@
def humanized_name
_("Disable")
end
def plan(product, content, options)
- if repository = repository_mapper(product,
- content,
- options,
- options[:registry_name]).find_repository
+ repository = repository_mapper(product,
+ content,
+ options,
+ options[:registry_name]).find_repository
+ if repository
action_subject(repository)
- plan_action(Repository::Destroy, repository)
+ plan_action(Repository::Destroy, repository, :planned_destroy => true)
else
fail ::Katello::Errors::NotFound, _('Repository not found')
end
end