Skip to content

Commit

Permalink
Fix cluster-sync wait_cdi_crd_installed timeout check (#3245)
Browse files Browse the repository at this point in the history
This line was writing to file `./0` instead of performing a greater-than
comparison.

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>
  • Loading branch information
EduardGomezEscandell authored May 7, 2024
1 parent e0a7544 commit 9527df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster-sync/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function install_cdi {
function wait_cdi_crd_installed {
timeout=$1
crd_defined=0
while [ $crd_defined -eq 0 ] && [ $timeout > 0 ]; do
while [ $crd_defined -eq 0 ] && [ $timeout -gt 0 ]; do
crd_defined=$(_kubectl get customresourcedefinition| grep cdis.cdi.kubevirt.io | wc -l)
sleep 1
timeout=$(($timeout-1))
Expand Down

0 comments on commit 9527df3

Please sign in to comment.