From e26d3f79a036041bc5b0ac91a4f7b4ef82aa64f9 Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Mon, 11 Mar 2024 14:35:10 -0400 Subject: [PATCH] Sanitize version name for kube_dev When in development mode, awx version may look like 23.9.1.dev18+gee9eac15dc.d20240311 k8s job to the migration can only have a name with alphanumeric, and '.', '-' so we can just drop off the + Signed-off-by: Seth Foster --- roles/installer/tasks/migrate_schema.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/installer/tasks/migrate_schema.yml b/roles/installer/tasks/migrate_schema.yml index ef41e1827..77ffc6fc6 100644 --- a/roles/installer/tasks/migrate_schema.yml +++ b/roles/installer/tasks/migrate_schema.yml @@ -22,9 +22,9 @@ changed_when: false register: version_check - - name: Update instance version + - name: Sanitize instance version set_fact: - version: "{{ version_check.stdout | trim }}" + version: "{{ version_check.stdout.split('+')[0] | trim }}" # It is possible to do a wait on this task to create the job and wait # until it completes. Unfortunately, if the job doesn't wait finish within