Skip to content

Commit 5bb2b2a

Browse files
Add deployment type shortname for legacy API url (#2026)
* Add deployment type shortname for legacy API url * Add trailing slash to legacy API url Co-authored-by: Christian Adams <[email protected]> --------- Co-authored-by: Christian Adams <[email protected]>
1 parent 039157d commit 5bb2b2a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

roles/installer/defaults/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
deployment_type: awx
3+
deployment_type_shortname: awx
34
kind: 'AWX'
45
api_version: '{{ deployment_type }}.ansible.com/v1beta1'
56

roles/installer/templates/configmaps/redirect-page.configmap.html.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ data:
6666
<p class="doc-note">
6767
The API endpoints for this platform service will temporarily remain available at the URL for this service.
6868
Please use the Ansible Automation Platform API endpoints corresponding to this component in the future.
69-
These can be found at <a href="{{ public_base_url }}/api/{{ deployment_type }}" target="_blank">{{ public_base_url }}/api/{{ deployment_type }}</a>.
69+
These can be found at <a href="{{ public_base_url }}/api/{{ deployment_type_shortname }}" target="_blank">{{ public_base_url }}/api/{{ deployment_type_shortname }}/</a>.
7070
</p>
7171

7272
<!-- Include any additional scripts if needed -->

0 commit comments

Comments
 (0)