Skip to content

Commit

Permalink
OpenShiftP-237: refactor the empty string check
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <[email protected]>
  • Loading branch information
prb112 committed Nov 9, 2024
1 parent 95342e2 commit 8ed7ce2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ansible/post/files/mount_etcd_ext_volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ echo "etcd migration done successfully."

#etcd migration done Verification start
i=0;
for count in 0 1 2; do
for count in 0 1 2
do
name=${arr[i+1]}
echo "Logging inside Node : ${name}"
mount_out=$(oc debug --as-root=true node/$name -- chroot /host grep -w "/var/lib/etcd" /proc/mounts)
echo "Mountpoint : ${mount_out} "
if [[ ${mount_out} = "" ]]; then
echo "Mount Point: ${mount_out} "
if [ -z "${mount_out}" ]
then
echo "etcd mount fail for : ${name}"
exit 0
fi
Expand Down

0 comments on commit 8ed7ce2

Please sign in to comment.