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

[GONRG-10322] Fix opa init for partitions

parent c4b163df
No related branches found
No related tags found
1 merge request!541[GONRG-10322] Fix opa init for partitions
Pipeline #291361 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