Closed agrare closed 1 year ago
Note, https://github.com/ManageIQ/manageiq-automation_engine/pull/509 went to oparin, so I added it in case we build it again.
Backported to petrosian
in commit 2ffdc96cd6ea68b4d0cda8a53039b64fdaf6d547.
commit 2ffdc96cd6ea68b4d0cda8a53039b64fdaf6d547
Author: Joe Rafaniello <jrafanie@users.noreply.github.com>
Date: Mon Mar 6 13:02:36 2023 -0500
Merge pull request #524 from agrare/fix_create_provision_request_user_argument
(cherry picked from commit 239602dd8f15ce20950f0828e172374924a497b2)
The
user
argument to MiqProvisionVirtWorkflow.from_ws must be the second positional argument not the last. This was causing failures when callinguser.userid
whenuser
was actually thetemplate_fields
hash payload.I used the example from the docs for the args https://www.manageiq.org/docs/reference/latest/scripting_actions/#inline-method-to-create-a-provision-request