Per summary, improve the magic function above to take an Array of MIQ objects, at least where applicable. This is true, at least, for AWS security_groups, and I suspect much more.
https://github.com/ManageIQ/manageiq/pull/13853
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/6c41fccc6b41a97d1e2265ee1f70b9998dd7dbb2 commit 6c41fccc6b41a97d1e2265ee1f70b9998dd7dbb2 Author: Lucy Fu <lufu> AuthorDate: Thu Feb 9 15:49:33 2017 -0500 Commit: Lucy Fu <lufu> CommitDate: Fri Feb 10 10:16:33 2017 -0500 Add set_resources for multiple resources. https://bugzilla.redhat.com/show_bug.cgi?id=1416572 app/models/mixins/miq_provision_mixin.rb | 52 ++++++++++++++++++++++---------- 1 file changed, 36 insertions(+), 16 deletions(-)
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/951d51831e9b4b603b89f8058c3925da547e492e commit 951d51831e9b4b603b89f8058c3925da547e492e Author: Lucy Fu <lufu> AuthorDate: Thu Feb 9 15:50:50 2017 -0500 Commit: Lucy Fu <lufu> CommitDate: Fri Feb 10 10:16:40 2017 -0500 Add multiple_value option for expose_eligible_resources. https://bugzilla.redhat.com/show_bug.cgi?id=1416572 ...e_manageiq-providers-cloud_manager-provision.rb | 2 +- .../mixins/miq_ae_service_miq_provision_mixin.rb | 12 +++++++- ...ageiq-providers-cloud_manager-provision_spec.rb | 35 +++++++++++++--------- 3 files changed, 33 insertions(+), 16 deletions(-)
Verified with the same steps as in BZ#1422653 in 5.8.0.9