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

Fixes #38219 - fix Ansible Tower API path based on AAP version #10445

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nofaralfasi
Copy link
Contributor

No description provided.

@nofaralfasi nofaralfasi force-pushed the fix_aap_version_api branch 2 times, most recently from 3487aaa to 6a9a8b5 Compare February 20, 2025 13:42
@@ -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
Copy link
Contributor

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?

Copy link
Contributor

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.

@nofaralfasi nofaralfasi changed the title Fixes #38219 - fix Ansible Tower API path based on version Fixes #38219 - fix Ansible Tower API path based on AAP version Feb 24, 2025
@nofaralfasi nofaralfasi force-pushed the fix_aap_version_api branch 2 times, most recently from 8b33b97 to 97b1383 Compare February 24, 2025 14:32
@nofaralfasi
Copy link
Contributor Author

nofaralfasi commented Feb 26, 2025

The failing tests seem related. I'm actively working on fixing them, but I'd appreciate a review of the overall implementation.

@nofaralfasi
Copy link
Contributor Author

Tests are fixed. The remaining failures are unrelated to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants