Skip to content

Commit

Permalink
remove configuration_workflow from app/models/manageiq/providers/auto…
Browse files Browse the repository at this point in the history
…mation_manager
  • Loading branch information
jameswnl committed Jul 26, 2018
1 parent 50a7589 commit 0262a2d
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 16 deletions.
8 changes: 1 addition & 7 deletions app/models/manageiq/providers/automation_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ class ManageIQ::Providers::AutomationManager < ManageIQ::Providers::BaseManager

has_many :configured_systems, :dependent => :destroy, :foreign_key => "manager_id"
has_many :configuration_profiles, :dependent => :destroy, :foreign_key => "manager_id"
has_many :configuration_scripts,
:dependent => :destroy,
:foreign_key => "manager_id",
:class_name => "::ConfigurationScript",
:inverse_of => :manager

has_many :configuration_workflows, :dependent => :destroy, :foreign_key => "manager_id", :inverse_of => :manager
has_many :configuration_scripts, :dependent => :destroy, :foreign_key => "manager_id"
has_many :credentials, :class_name => "ManageIQ::Providers::AutomationManager::Authentication",
:as => :resource, :dependent => :destroy
has_many :inventory_groups, :dependent => :destroy, :foreign_key => "ems_id", :inverse_of => :manager
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class ManageIQ::Providers::EmbeddedAnsible::AutomationManager < ManageIQ::Provid
require_nested :Refresher
require_nested :RefreshWorker

has_many :configuration_workflows, :dependent => :destroy, :foreign_key => "manager_id", :inverse_of => :manager

def self.ems_type
@ems_type ||= "embedded_ansible_automation".freeze
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class ManageIQ::Providers::EmbeddedAnsible::AutomationManager::ConfigurationWorkflow < ManageIQ::Providers::EmbeddedAutomationManager::ConfigurationWorkflow
class ManageIQ::Providers::EmbeddedAnsible::AutomationManager::ConfigurationWorkflow < ManageIQ::Providers::EmbeddedAutomationManager::ConfigurationScript
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::ConfigurationWorkflow
end

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion spec/factories/configuration_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

factory :configuration_script, :class => "ConfigurationScript", :parent => :configuration_script_base
factory :configuration_workflow,
:class => "ManageIQ::Providers::AutomationManager::ConfigurationWorkflow",
:class => "ManageIQ::Providers::AnsibleTower::AutomationManager::ConfigurationWorkflow",
:parent => :configuration_script
factory :ansible_configuration_script,
:class => "ManageIQ::Providers::AnsibleTower::AutomationManager::ConfigurationScript",
Expand Down

0 comments on commit 0262a2d

Please sign in to comment.