From 3a7229a590e25c3b55fedde373afe7320c727e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Z=C3=A1zrivec?= Date: Thu, 8 Aug 2019 11:30:07 +0200 Subject: [PATCH] Merge pull request #5948 from d-m-u/fixing_ems_network_endpoint The dialog ems_network endpoint is wrong (cherry picked from commit 4f7ee6769050cf1bc53be218be1d751302beecb3) https://bugzilla.redhat.com/show_bug.cgi?id=1732436 --- app/services/dialog_local_service.rb | 2 +- spec/services/dialog_local_service_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/dialog_local_service.rb b/app/services/dialog_local_service.rb index 3087e41130d..5dbf8ba1b73 100644 --- a/app/services/dialog_local_service.rb +++ b/app/services/dialog_local_service.rb @@ -61,7 +61,7 @@ def determine_api_endpoints(obj, display_options = {}) when "CloudManager" "/ems_cloud" when "NetworkManager" - "/ems_networks" + "/ems_network" when "CinderManager" "/ems_block_storage" when "SwiftManager" diff --git a/spec/services/dialog_local_service_spec.rb b/spec/services/dialog_local_service_spec.rb index 8f726bb6051..f0f1abaadc3 100644 --- a/spec/services/dialog_local_service_spec.rb +++ b/spec/services/dialog_local_service_spec.rb @@ -83,7 +83,7 @@ let(:obj) { double(:class => ManageIQ::Providers::Amazon::NetworkManager, :id => 123) } include_examples "DialogLocalService#determine_dialog_locals_for_custom_button return value", - "ext_management_system", "ExtManagementSystem", "providers", "/ems_networks" + "ext_management_system", "ExtManagementSystem", "providers", "/ems_network" end context "when the object is a private CloudNetwork" do