From 7c9cea9f9a2cab538b44a4f1eba7b2c9424cdca8 Mon Sep 17 00:00:00 2001 From: Zita Nemeckova Date: Mon, 17 Jul 2017 13:01:31 +0200 Subject: [PATCH] Fix wrong klass and path for instance Power actions --- app/controllers/application_controller/ci_processing.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller/ci_processing.rb b/app/controllers/application_controller/ci_processing.rb index 29595ffd770..7b71cbd9dc4 100644 --- a/app/controllers/application_controller/ci_processing.rb +++ b/app/controllers/application_controller/ci_processing.rb @@ -258,7 +258,7 @@ def vm_button_operation(task, display_name, partial_after_single_selection = nil # Either a list or coming from a different controller (e.g. from host screen, go to its vms) if @lastaction == "show_list" || - !%w(orchestration_stack service vm_cloud vm_infra vm miq_template vm_or_template).include?(controller_name) + !%w(service vm_cloud vm_infra vm miq_template vm_or_template).include?(controller_name) # FIXME: retrieving vms from DB two times items = find_checked_ids_with_rbac(klass, task) @@ -362,7 +362,7 @@ def get_rec_cls when "miq_template" MiqTemplate when "orchestration_stack" - OrchestrationStack + params[:display] == "instances" ? VmOrTemplate : OrchestrationStack when "service" Service when "cloud_object_store_container"