Skip to content

Commit

Permalink
Merge pull request #23 from durandom/job_template_project_id
Browse files Browse the repository at this point in the history
check if project_id is accessible
  • Loading branch information
agrare authored Sep 25, 2017
2 parents c5df802 + a4ed443 commit 76a9b64
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def configuration_scripts
inventory_object.variables = job_template.extra_vars_hash
inventory_object.inventory_root_group = persister.inventory_root_groups.lazy_find(job_template.inventory_id.to_s)
inventory_object.parent = persister.configuration_script_payloads.lazy_find(
:configuration_script_source => job_template.project_id,
# checking job_template.project_id due to https://github.com/ansible/ansible_tower_client_ruby/issues/68
# if we hit a job_template which has no related project and thus .project_id is not defined
:configuration_script_source => job_template.try(:project_id),
:manager_ref => job_template.playbook
)

Expand Down

0 comments on commit 76a9b64

Please sign in to comment.