Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if project_id is accessible #23

Merged
merged 1 commit into from
Sep 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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