Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Power actions for Instances in Orchestration Stack page #1696

Merged
merged 1 commit into from Jul 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/controllers/application_controller/ci_processing.rb
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down