Skip to content

Commit

Permalink
Typo is fixed for MCP wait condition
Browse files Browse the repository at this point in the history
Signed-off-by: Chandan Abhyankar <chandan.abhyankar@gmail.com>
  • Loading branch information
Chandan-Abhyankar committed Nov 1, 2023
1 parent a2031aa commit 5501f0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/4_pvs_support/files/migrate-mcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ do
oc get mcp power -o json | jq -r '.status.readyMachineCount'

MCP_IDX=$(($MCP_IDX + 1))
if [ "${MCP_IDX}" -gt "${COUNT}" ]
if [ "${MCP_IDX}" -gt "${MCP_COUNT}" ]
then
echo "failed to wait on the machine count"
exit 1
Expand All @@ -101,7 +101,7 @@ do
oc get mcp power -o json | jq -r '.status.readyMachineCount'

MCP_IDX=$(($MCP_IDX + 1))
if [ "${MCP_IDX}" -gt "${COUNT}" ]
if [ "${MCP_IDX}" -gt "${MCP_COUNT}" ]
then
echo "failed to wait on the machine count"
exit 1
Expand All @@ -121,4 +121,4 @@ else
echo "Skipping mcp creation as the preinstall-worker-kargs does not exist"
oc get mc | grep -v rendered- | grep worker

fi
fi

0 comments on commit 5501f0c

Please sign in to comment.