Skip to content

Commit

Permalink
remove unnecessary display_name functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nasark committed Dec 13, 2024
1 parent ab3869b commit 219df7e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 219df7e

Please sign in to comment.