Lucy - PR https://github.com/ManageIQ/manageiq/pull/7542 changed the relationship of the Switch model (mainly host to hosts) but the Automate Service model was not updated. Please review the changes in that PR so we can update the service model relationships to match.
https://github.com/ManageIQ/manageiq/pull/10097
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/8aa9e80f990383fa3fcc70ef33f50fd99be18749 commit 8aa9e80f990383fa3fcc70ef33f50fd99be18749 Author: Lucy Fu <lufu> AuthorDate: Wed Jul 27 14:06:52 2016 -0400 Commit: Lucy Fu <lufu> CommitDate: Wed Jul 27 14:22:08 2016 -0400 Update Switch's relationship from host to hosts in automate. This relationship change from host to hosts in Switch model was done in PR https://github.com/ManageIQ/manageiq/pull/7542. https://bugzilla.redhat.com/show_bug.cgi?id=1360829 .../service_models/miq_ae_service_switch.rb | 2 +- .../service_methods/miq_ae_service_switch_spec.rb | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 spec/lib/miq_automation_engine/service_methods/miq_ae_service_switch_spec.rb
Fixed and verified in 5.7.0.3.20160927165516_075d0f3. Rails console was used for testing: $evm = MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new) s = $evm.vmdb(:switch).first s.hosts