Skip to content

Commit

Permalink
Pass request task into workflow as object
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jul 28, 2023
1 parent 9d2387e commit 75b9683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_request_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def deliver_queue(req_type = request_type, zone = nil)
_log.info("Queuing #{request_class::TASK_DESCRIPTION}: [#{description}]...")

if resource_action&.configuration_script_payload
resource_action.configuration_script_payload.run(:inputs => dialog_values, :userid => get_user.userid, :zone => zone)
resource_action.configuration_script_payload.run(:inputs => dialog_values, :userid => get_user.userid, :zone => zone, :object => self)
elsif self.class::AUTOMATE_DRIVES
deliver_to_automate(req_type, zone)
else
Expand Down

0 comments on commit 75b9683

Please sign in to comment.