From 8b74361668900029317547aa57171647eff5d41b Mon Sep 17 00:00:00 2001 From: Victoria Martinez de la Cruz Date: Mon, 8 Jul 2024 14:50:58 +0200 Subject: [PATCH] Get STO and SGO bundle versions from info Parse the oc image info output to get the STO and SGO bundle versions --- build/stf-run-ci/tasks/create_catalog.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/stf-run-ci/tasks/create_catalog.yml b/build/stf-run-ci/tasks/create_catalog.yml index 83df20f7..6fd026df 100644 --- a/build/stf-run-ci/tasks/create_catalog.yml +++ b/build/stf-run-ci/tasks/create_catalog.yml @@ -24,10 +24,10 @@ ansible.builtin.command: oc image info {{ __smart_gateway_bundle_image_path }} register: sgo_bundle_info - - name: Get STO and SGO operator bundle versions + - name: Get STO and SGO bundle versions ansible.builtin.set_fact: - sto_operator_bundle_version: "{{ sto_bundle_info.stdout_lines[-1] | from_json }}" - sgo_operator_bundle_version: "{{ sgo_bundle_info.stdout_lines[-1] | from_json }}" + sto_operator_bundle_version: "{{ sto_bundle_info.stdout_lines[-1] | split('=') | last }}" + sgo_operator_bundle_version: "{{ sgo_bundle_info.stdout_lines[-1] | split('=') | last }}" - name: Set info variables from provided pre-built bundles ansible.builtin.set_fact: