Skip to content

Commit

Permalink
Merge pull request #17785 from jameswnl/workflow5
Browse files Browse the repository at this point in the history
Graph refresh of configuration_scripts and configuration_workflows in one InventoryCollection
  • Loading branch information
agrare committed Aug 1, 2018
2 parents b44e073 + 264e4c0 commit 3777928
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ 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
Expand Up @@ -19,11 +19,6 @@ def configuration_script_sources
add_common_default_values
end

def configuration_workflows
default_manager_ref
add_common_default_values
end

def configured_systems
default_manager_ref
add_common_default_values
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
trait(:configuration_workflow) do
after(:create) do |x|
type = (x.type.split("::")[0..2] + %w(AutomationManager ConfigurationWorkflow)).join("::")
x.configuration_workflows << FactoryGirl.create(:configuration_workflow, :type => type)
x.configuration_scripts << FactoryGirl.create(:configuration_workflow, :type => type)
end
end

Expand Down

0 comments on commit 3777928

Please sign in to comment.