diff --git a/app/models/miq_queue.rb b/app/models/miq_queue.rb index 4b9f4cb16b7..cfac74ac202 100644 --- a/app/models/miq_queue.rb +++ b/app/models/miq_queue.rb @@ -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