Skip to content

Commit

Permalink
Merge pull request #18104 from d-m-u/fixing_retirement_task_user
Browse files Browse the repository at this point in the history
Retire Task deliver_to_automate now uses tenant_identity

(cherry picked from commit af80b91)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1640618
  • Loading branch information
kbrock authored and simaishi committed Oct 26, 2018
1 parent e31ddae commit ec64282
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/miq_retire_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def deliver_to_automate(req_type = request_type, zone = nil)
:object_id => id,
:attrs => {"request" => req_type},
:instance_name => "AUTOMATION",
:user_id => 1,
:miq_group_id => 2,
:tenant_id => 1,
:user_id => miq_request.requester.id,
:miq_group_id => miq_request.requester.current_group_id,
:tenant_id => miq_request.requester.current_group.tenant_id,
}

MiqAeEngine::set_automation_attributes_from_objects(source, args[:attrs])
Expand Down

0 comments on commit ec64282

Please sign in to comment.