From e26861f8f6a49b5eca084a4088c9568fc7ffc030 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Thu, 28 Mar 2024 15:43:27 -0400 Subject: [PATCH] Try sh brackets? No-Issue Signed-off-by: James Tanner --- .../galaxy_ng/tools/roles/pulp_client/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/playbooks/collections/ansible_collections/galaxy_ng/tools/roles/pulp_client/tasks/main.yml b/dev/playbooks/collections/ansible_collections/galaxy_ng/tools/roles/pulp_client/tasks/main.yml index 2694715501..6ff69f1cfb 100644 --- a/dev/playbooks/collections/ansible_collections/galaxy_ng/tools/roles/pulp_client/tasks/main.yml +++ b/dev/playbooks/collections/ansible_collections/galaxy_ng/tools/roles/pulp_client/tasks/main.yml @@ -18,7 +18,7 @@ export PULP_URL='https://{{ pulp_ip.stdout }}/api/galaxy/pulp/api/v3/'; curl -L -k -u admin:password -o status.json 'https://{{ pulp_ip.stdout }}/api/galaxy/pulp/api/v3/status/'; curl -L -k -u admin:password -o api.json 'https://{{ pulp_ip.stdout }}/api/galaxy/pulp/api/v3/docs/api.json?bindings&plugin={{ item }}'; - if [[ "{{ item }}" == "galaxy_ng" ]]; then + if [ "{{ item }}" == "galaxy_ng" ]; then cat status.json | head export REPORTED_VERSION=$(jq '.versions[] | select (.component == "galaxy").version' status.json | tr -d '"') echo "REPORTED_VERSION: ${REPORTED_VERSION}"