Skip to content
Snippets Groups Projects
Commit 197ea258 authored by Danylo Vanin (EPAM)'s avatar Danylo Vanin (EPAM)
Browse files

Merge branch 'GONRG-10322-Fix-Opa-Bootstrap' into 'master'


[GONRG-10322] Fix opa init for partitions

See merge request !541

(cherry picked from commit 330875ee)

146969cf [GONRG-10322] Fix opa init for partitions

Co-authored-by: default avatarAliaksandr Ramanovich (EPAM) <aliaksandr_ramanovich1@epam.com>
parent 0d3ef4b3
No related branches found
No related tags found
1 merge request!542Merge branch 'GONRG-10322-Fix-Opa-Bootstrap' into 'master'
Pipeline #292026 failed
......@@ -13,6 +13,13 @@ if [[ "${status_code}" == 200 ]]; then
PARTITIONS_LIST=$(curl --location "${PARTITION_BASE_URL}/api/partition/v1/partitions" | jq -r '[.[] | select(. != "system")] | join(",")')
IFS=',' read -ra PARTITIONS <<< "${PARTITIONS_LIST}"
echo $PARTITIONS
# Check for partition bootstrap
if [ -z "$PARTITIONS" ]
then
echo "Partition bootstrap is not finished"
sleep 15
exit 1
fi
else
echo "Exiting with status code: ${status_code}"
sleep 15
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment