Skip to content

Commit

Permalink
Add download_summary_pdf route for automation_manager
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Mar 2, 2017
1 parent 06a0c52 commit 28dfdf0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/controllers/automation_manager_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ def x_show
generic_x_show
end

def identify_record(id, klass = self.class.model)
type, _id = parse_nodetype_and_id(x_node)
klass = TreeBuilder.get_model_for_prefix(type).constantize if type
record = super(id, klass)
record
end

def tree_record
@record =
case x_active_tree
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def db_to_controller(db, action = "show")
action = "diagnostics_worker_selected"
when "OrchestrationStackOutput", "OrchestrationStackParameter", "OrchestrationStackResource",
"ManageIQ::Providers::CloudManager::OrchestrationStack",
"ManageIQ::Providers::AnsibleTower::AutomationManager::Job"
"ManageIQ::Providers::AnsibleTower::AutomationManager::Job", "ConfigurationScriptBase"
controller = request.parameters[:controller]
when "ContainerVolume"
controller = "persistent_volume"
Expand Down
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
:automation_manager => {
:get => %w(
download_data
download_summary_pdf
explorer
automation_manager_form_fields
show
Expand Down

0 comments on commit 28dfdf0

Please sign in to comment.