diff --git a/app/controllers/automation_manager_controller.rb b/app/controllers/automation_manager_controller.rb index 6837ab1d330..a3d91300434 100644 --- a/app/controllers/automation_manager_controller.rb +++ b/app/controllers/automation_manager_controller.rb @@ -93,6 +93,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 diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index bac2e08d125..ad8a30476af 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -385,7 +385,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" diff --git a/app/views/layouts/show_pdf.html.haml b/app/views/layouts/show_pdf.html.haml index f3daa5fc274..d3408d67fcb 100644 --- a/app/views/layouts/show_pdf.html.haml +++ b/app/views/layouts/show_pdf.html.haml @@ -6,5 +6,7 @@ = render :partial => "#{controller}/main_configuration_profile" - elsif @record.kind_of?(ManageIQ::Providers::AutomationManager::InventoryGroup) = render :partial => "#{controller}/main_inventory_group" +- elsif @record.kind_of?(ManageIQ::Providers::AutomationManager::ConfigurationScript) + = render :partial => "#{controller}/configuration_script" - else = render :partial => "layouts/textual_groups_generic" diff --git a/config/routes.rb b/config/routes.rb index 95703a4cde8..f09a43a4d1e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -158,6 +158,7 @@ :automation_manager => { :get => %w( download_data + download_summary_pdf explorer form_fields show