Skip to content

Commit

Permalink
Merge pull request #22 from agrare/use_correct_foreign_key_job_templates
Browse files Browse the repository at this point in the history
Use the right foreign_key for Job#job_template
  • Loading branch information
Fryguy authored Jan 11, 2024
2 parents 134c75c + 61cc8b3 commit 155894b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ManageIQ::Providers::Awx::AutomationManager::Job <
require_nested :Status

belongs_to :ext_management_system, :foreign_key => :ems_id, :class_name => "ManageIQ::Providers::AutomationManager"
belongs_to :job_template, :foreign_key => :orchestration_template_id, :class_name => "ConfigurationScript"
belongs_to :job_template, :foreign_key => :configuration_script_id, :class_name => "ConfigurationScript"
belongs_to :playbook, :foreign_key => :configuration_script_base_id

virtual_has_many :job_plays
Expand Down

0 comments on commit 155894b

Please sign in to comment.