Skip to content

Commit

Permalink
class_name association from ConfigurationScript to AutomationManager …
Browse files Browse the repository at this point in the history
…to fix build
  • Loading branch information
jameswnl committed Jul 20, 2018
1 parent 6b4c4da commit ce57cf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/configuration_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ class ConfigurationScript < ConfigurationScriptBase
def self.base_model
ConfigurationScript
end
belongs_to :manager, :class_name => "ExtManagementSystem", :inverse_of => :configuration_scripts
belongs_to :manager, :class_name => "ManageIQ::Providers::AutomationManager", :inverse_of => :configuration_scripts
end
8 changes: 6 additions & 2 deletions app/models/manageiq/providers/automation_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ 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"
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 :credentials, :class_name => "ManageIQ::Providers::AutomationManager::Authentication",
:as => :resource, :dependent => :destroy
Expand Down

0 comments on commit ce57cf5

Please sign in to comment.