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

Remove unnecessary display_name functions #319

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading