From 219df7e86c0960f5a769c1a94f7be42fed082a5e Mon Sep 17 00:00:00 2001 From: Nasar Khan Date: Fri, 13 Dec 2024 15:01:37 -0500 Subject: [PATCH] remove unnecessary display_name functions --- .../ansible_tower/automation_manager/configuration_script.rb | 4 ---- .../automation_manager/configuration_workflow.rb | 4 ---- .../ansible_tower/automation_manager/configured_system.rb | 4 ---- .../providers/ansible_tower/automation_manager/job.rb | 4 ---- .../providers/ansible_tower/automation_manager/playbook.rb | 4 ---- .../ansible_tower/automation_manager/workflow_job.rb | 4 ---- 6 files changed, 24 deletions(-) diff --git a/app/models/manageiq/providers/ansible_tower/automation_manager/configuration_script.rb b/app/models/manageiq/providers/ansible_tower/automation_manager/configuration_script.rb index 43f660ce..7f5cc84a 100644 --- a/app/models/manageiq/providers/ansible_tower/automation_manager/configuration_script.rb +++ b/app/models/manageiq/providers/ansible_tower/automation_manager/configuration_script.rb @@ -14,9 +14,5 @@ def run_with_miq_job(options, userid = nil) miq_job.miq_task.id end - def self.display_name(number = 1) - n_('Job Template (Ansible Automation Platform)', 'Job Templates (Ansible Automation Platform)', number) - end - FRIENDLY_NAME = 'Ansible Automation Platform Job Template'.freeze end diff --git a/app/models/manageiq/providers/ansible_tower/automation_manager/configuration_workflow.rb b/app/models/manageiq/providers/ansible_tower/automation_manager/configuration_workflow.rb index e5af4f52..17992e1a 100644 --- a/app/models/manageiq/providers/ansible_tower/automation_manager/configuration_workflow.rb +++ b/app/models/manageiq/providers/ansible_tower/automation_manager/configuration_workflow.rb @@ -10,9 +10,5 @@ def run_with_miq_job(options, userid = nil) miq_job.miq_task.id end - def self.display_name(number = 1) - n_('Workflow Template (Ansible Automation Platform)', 'Workflow Templates (Ansible Automation Platform)', number) - end - FRIENDLY_NAME = 'Ansible Automation Platform Workflow Job Template'.freeze end diff --git a/app/models/manageiq/providers/ansible_tower/automation_manager/configured_system.rb b/app/models/manageiq/providers/ansible_tower/automation_manager/configured_system.rb index 91b75736..47d83fe4 100644 --- a/app/models/manageiq/providers/ansible_tower/automation_manager/configured_system.rb +++ b/app/models/manageiq/providers/ansible_tower/automation_manager/configured_system.rb @@ -2,8 +2,4 @@ class ManageIQ::Providers::AnsibleTower::AutomationManager::ConfiguredSystem < ManageIQ::Providers::Awx::AutomationManager::ConfiguredSystem - - def self.display_name(number = 1) - n_('Configured System (Ansible Automation Platform)', 'Configured Systems (Ansible Automation Platform)', number) - end end diff --git a/app/models/manageiq/providers/ansible_tower/automation_manager/job.rb b/app/models/manageiq/providers/ansible_tower/automation_manager/job.rb index ce10e507..a49063f8 100644 --- a/app/models/manageiq/providers/ansible_tower/automation_manager/job.rb +++ b/app/models/manageiq/providers/ansible_tower/automation_manager/job.rb @@ -1,10 +1,6 @@ ManageIQ::Providers::Awx::AutomationManager::Job.include(ActsAsStiLeafClass) class ManageIQ::Providers::AnsibleTower::AutomationManager::Job < ManageIQ::Providers::Awx::AutomationManager::Job - def self.display_name(number = 1) - n_('Ansible Automation Platform Job', 'Ansible Automation Platform Jobs', number) - end - def refresh_ems require 'ansible_tower_client' ext_management_system.with_provider_connection do |connection| diff --git a/app/models/manageiq/providers/ansible_tower/automation_manager/playbook.rb b/app/models/manageiq/providers/ansible_tower/automation_manager/playbook.rb index ccb8c74c..1f2bda0b 100644 --- a/app/models/manageiq/providers/ansible_tower/automation_manager/playbook.rb +++ b/app/models/manageiq/providers/ansible_tower/automation_manager/playbook.rb @@ -2,8 +2,4 @@ class ManageIQ::Providers::AnsibleTower::AutomationManager::Playbook < ManageIQ::Providers::ExternalAutomationManager::ConfigurationScriptPayload has_many :jobs, :class_name => 'OrchestrationStack', :foreign_key => :configuration_script_base_id - - def self.display_name(number = 1) - n_('Playbook (Ansible Automation Platform)', 'Playbooks (Ansible Automation Platform)', number) - end end diff --git a/app/models/manageiq/providers/ansible_tower/automation_manager/workflow_job.rb b/app/models/manageiq/providers/ansible_tower/automation_manager/workflow_job.rb index 785443fb..b175fbc1 100644 --- a/app/models/manageiq/providers/ansible_tower/automation_manager/workflow_job.rb +++ b/app/models/manageiq/providers/ansible_tower/automation_manager/workflow_job.rb @@ -9,10 +9,6 @@ class ManageIQ::Providers::AnsibleTower::AutomationManager::WorkflowJob < # jobs under this workflow job alias jobs orchestration_stacks - def self.display_name(number = 1) - n_('Ansible Automation Platform Workflow Job', 'Ansible Automation Platform Workflow Jobs', number) - end - def raw_status require 'ansible_tower_client' ext_management_system.with_provider_connection do |connection|