Skip to content

Commit

Permalink
use 'miq_task_id' instead of miq_task when checking if there is task …
Browse files Browse the repository at this point in the history
…linked to queue item
  • Loading branch information
yrudman committed Mar 16, 2018
1 parent e4307b7 commit 079d10c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/miq_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,9 @@ def self.get_worker(task_id)
private

def activate_miq_task(args)
MiqTask.update_status(miq_task_id, MiqTask::STATE_ACTIVE, MiqTask::STATUS_OK, "Task starting") if miq_task
pars = args.first
pars[:miq_task_id] = miq_task_id if pars.kind_of?(Hash)
MiqTask.update_status(miq_task_id, MiqTask::STATE_ACTIVE, MiqTask::STATUS_OK, "Task starting") if miq_task_id
params = args.first
params[:miq_task_id] = miq_task_id if params.kind_of?(Hash)
args
end

Expand Down

0 comments on commit 079d10c

Please sign in to comment.