Skip to content

Commit

Permalink
if 'miq_task_id' instead of miq_task when checking if there is task l…
Browse files Browse the repository at this point in the history
…inked to queue item
  • Loading branch information
yrudman committed Mar 14, 2018
1 parent 6e24749 commit 72a1b2d
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 72a1b2d

Please sign in to comment.