From 5bb2b2ac87a106423af7cd432901f97c2afd7d29 Mon Sep 17 00:00:00 2001 From: jamesmarshall24 Date: Wed, 5 Mar 2025 15:04:01 -0500 Subject: [PATCH] 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 --------- Co-authored-by: Christian Adams --- roles/installer/defaults/main.yml | 1 + .../templates/configmaps/redirect-page.configmap.html.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/installer/defaults/main.yml b/roles/installer/defaults/main.yml index d3068595..70289bc3 100644 --- a/roles/installer/defaults/main.yml +++ b/roles/installer/defaults/main.yml @@ -1,5 +1,6 @@ --- deployment_type: awx +deployment_type_shortname: awx kind: 'AWX' api_version: '{{ deployment_type }}.ansible.com/v1beta1' diff --git a/roles/installer/templates/configmaps/redirect-page.configmap.html.j2 b/roles/installer/templates/configmaps/redirect-page.configmap.html.j2 index 2038bcab..9e87cf82 100644 --- a/roles/installer/templates/configmaps/redirect-page.configmap.html.j2 +++ b/roles/installer/templates/configmaps/redirect-page.configmap.html.j2 @@ -66,7 +66,7 @@ data:

The API endpoints for this platform service will temporarily remain available at the URL for this service. Please use the Ansible Automation Platform API endpoints corresponding to this component in the future. - These can be found at {{ public_base_url }}/api/{{ deployment_type }}. + These can be found at {{ public_base_url }}/api/{{ deployment_type_shortname }}/.