-
Notifications
You must be signed in to change notification settings - Fork 998
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
Fixes #38219 - fix Ansible Tower API path based on AAP version #10445
base: develop
Are you sure you want to change the base?
Conversation
app/views/unattended/provisioning_templates/snippet/ansible_tower_callback_service.erb
Outdated
Show resolved
Hide resolved
3487aaa
to
6a9a8b5
Compare
app/views/unattended/provisioning_templates/snippet/ansible_tower_callback_script.erb
Outdated
Show resolved
Hide resolved
app/views/unattended/provisioning_templates/snippet/ansible_tower_callback_script.erb
Outdated
Show resolved
Hide resolved
@@ -10,9 +10,17 @@ description: | | |||
#!/bin/sh | |||
|
|||
echo "Calling Ansible AWX/Tower provisioning callback..." | |||
|
|||
# Query the AC version | |||
if [ $(echo "$(curl -k -s https://<%= host_param('ansible_tower_fqdn') %>/api/v2/ping/ | jq -r .version | cut -d. -f1,2) >= 4.6" | bc) -eq 1 ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious to know if /api/v2/ping/
is same endpoint for both versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a 4.5.8 where I see the ping endpoint works.. Not sure about even older instances though.
6a9a8b5
to
74be1c7
Compare
8b33b97
to
97b1383
Compare
The failing tests seem related. I'm actively working on fixing them, but I'd appreciate a review of the overall implementation. |
97b1383
to
5437e08
Compare
Tests are fixed. The remaining failures are unrelated to this PR. |
No description provided.