-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send IDs through exec_api_call as a regular param not a block #16708
Conversation
While this doesn't fix the BZ linked, it's the next problem that the customer will hit once the authentication error is fixed. |
Do we support multiple ids at this level or is it only ever 1 at a time? |
It's always one here. This code path is for forwarding instance methods to a remote region. There is another method for forwarding class methods. |
@Fryguy since you're here... I labeled it with |
If we're going to backport this I think we should probably have a BZ for the actual issue this is solving. |
When sending them through an array in a block, the client calls the action on the collection with an array of IDs. Unfortunately this returns an Array of ManageIQ::API::Client::ActionResults and Arrays aren't currently an expected response for this caller, so it will raise: "Got unexpected API result object Array" Rather than dealing with the confusion of calling .first on the array, allow an ID to be passed in. https://bugzilla.redhat.com/show_bug.cgi?id=1526009 Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1528339
a53e101
to
1eca9a8
Compare
Checked commit bdunne@1eca9a8 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Send IDs through exec_api_call as a regular param not a block (cherry picked from commit 2d95d40) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1530677
Gaprindashvili backport details:
|
Send IDs through exec_api_call as a regular param not a block (cherry picked from commit 2d95d40) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1531177
Fine backport details:
|
Send IDs through exec_api_call as a regular param not a block (cherry picked from commit 2d95d40) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1531177
When sending them through an array in a block, the client calls the action on the collection with an array of IDs. Unfortunately this returns an array of
ManageIQ::API::Client::ActionResult
s and arrays aren't currently an expected response for this caller, so it will raiseGot unexpected API result object Array
Rather than dealing with the confusion of calling .first on the array, allow an ID to be passed in.
https://bugzilla.redhat.com/show_bug.cgi?id=1526009
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1528339