Bug 1528339
| Summary: | Got unexpected API result object Array | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Brandon Dunne <bdunne> | |
| Component: | Provisioning | Assignee: | Brandon Dunne <bdunne> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Dave Johnson <dajohnso> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | unspecified | CC: | bdunne, cpelland, jhardy, obarenbo, simaishi | |
| Target Milestone: | GA | Keywords: | TestOnly | |
| Target Release: | 5.10.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1530677 1531177 (view as bug list) | Environment: | ||
| Last Closed: | 2018-06-21 20:25:42 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | CFME Core | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1530677, 1531177 | |||
|
Description
Brandon Dunne
2017-12-21 15:19:33 UTC
Please assess the impact of this issue and update the severity accordingly. Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition. If it's something like a tracker bug where it doesn't matter, please set the severity to Low. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/1eca9a8d65fd6ea16f7e1094a5bbef680feb6eb1 commit 1eca9a8d65fd6ea16f7e1094a5bbef680feb6eb1 Author: Brandon Dunne <bdunne> AuthorDate: Wed Dec 20 17:40:51 2017 -0500 Commit: Brandon Dunne <bdunne> CommitDate: Thu Dec 21 10:21:52 2017 -0500 Send IDs through exec_api_call as a regular param not a block 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 app/models/mixins/inter_region_api_method_relay.rb | 13 ++--- .../mixins/inter_region_api_method_relay_spec.rb | 66 +++++++--------------- 2 files changed, 23 insertions(+), 56 deletions(-) |