Skip to content

Commit

Permalink
Merge pull request #1482 from lpichler/use_status_of_miq_task_for_fet…
Browse files Browse the repository at this point in the history
…ching_of_report

Use for fetching report result status of MiqTask
  • Loading branch information
martinpovolny authored Jun 5, 2017
2 parents c321505 + 3c8e174 commit bee1a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/report_controller/saved_reports.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def fetch_saved_report(id)
@report_result_id = session[:report_result_id] = rr.id
session[:report_result_runtime] = rr.last_run_on
task = MiqTask.find_by_id(rr.miq_task_id)
if rr.status.downcase == "complete"
if task && MiqTask.status_ok?(task.status)
@report = rr.report_results
session[:rpt_task_id] = nil
if @report.blank?
Expand Down

0 comments on commit bee1a22

Please sign in to comment.