lib/katello/tasks/upgrade_check.rake in katello-3.2.0 vs lib/katello/tasks/upgrade_check.rake in katello-3.2.1

- old
+ new

@@ -12,8 +12,12 @@ # check for any running tasks task_count = ::ForemanTasks::Task.active.where("label != '#{CP_LISTEN_ACTION}'").count task_status = task_count > 0 ? fail : success puts "Checking for running tasks..." puts "[#{task_status}] - There are #{task_count} active tasks. " - puts " Please wait for these to complete or cancel them from the Monitor tab.\n\n" + if task_count > 0 + puts " Please wait for these to complete or cancel them from the Monitor tab.\n\n" + else + puts " You may proceed with the upgrade.\n\n" + end end end