Skip to content

Commit

Permalink
Fixes #15694 - Change the number of accepted failed tasks to 0. (#6188)
Browse files Browse the repository at this point in the history
Since the query already excludes the candlepin listen event, the
number of tasks acceptable should be 0.
As a result, the script will pass incorrectly.
Fixes #15694.
  • Loading branch information
JacobCallahan authored and ehelms committed Jul 14, 2016
1 parent b2640c5 commit d12e6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/katello/tasks/upgrade_check.rake
Expand Up @@ -11,7 +11,7 @@ namespace :katello do

# check for any running tasks
task_count = ::ForemanTasks::Task.active.where("label != '#{CP_LISTEN_ACTION}'").count
task_status = task_count > 1 ? fail : success
task_status = task_count > 0 ? fail : success
puts "Checking for running tasks..."
puts "[#{task_status}] - There are #{task_count} active tasks.\n\n"
end
Expand Down

0 comments on commit d12e6e6

Please sign in to comment.