Project

General

Profile

Actions

Bug #31424

closed

remove 'load' from rake tasks

Added by Justin Sherrill over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Tooling
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

we currently call load within a few rake tasks:

lib/katello/tasks/delete_orphaned_content.rake:load "#{Katello::Engine.root}/lib/katello/tasks/common.rake"
lib/katello/tasks/pulp3_migration.rake:load "#{Katello::Engine.root}/lib/katello/tasks/common.rake"
lib/katello/tasks/pulp3_post_migration_check.rake:load "#{Katello::Engine.root}/lib/katello/tasks/common.rake"
lib/katello/tasks/repository.rake:load "#{Katello::Engine.root}/lib/katello/tasks/common.rake"

This can cause tasks to be double loaded and double executed. We likely could load common.rake first here: https://github.com/Katello/katello/blob/master/lib/katello/engine.rb#L242-L247

Actions

Also available in: Atom PDF