From a260ab6873a4cf10c4e1b918b5233dd3caf0bc4e Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Wed, 5 Jun 2024 14:10:51 -0400 Subject: [PATCH] Fix migrating from devel version to devel version (#1890) upgrading from devel version to devel version currently don't run migration because we chopped off the git sha --- roles/installer/tasks/migrate_schema.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/installer/tasks/migrate_schema.yml b/roles/installer/tasks/migrate_schema.yml index 77ffc6fc..22b23a67 100644 --- a/roles/installer/tasks/migrate_schema.yml +++ b/roles/installer/tasks/migrate_schema.yml @@ -24,7 +24,7 @@ - name: Sanitize instance version set_fact: - version: "{{ version_check.stdout.split('+')[0] | trim }}" + version: "{{ version_check.stdout | replace('+', '-') | 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