Fix linefeed in wait_until_object_does_not_exist() when it succeeds
@@ -100,7 +100,10 @@ function wait_until_object_does_not_exist() {
fi
echo -n "Waiting until ${DESCRIPTION} does not exist"
for i in {1..150}; do # timeout after 5 minutes
- kubectl ${KUBECTL_ARGS} > /dev/null 2>&1 || return 0
+ if kubectl ${KUBECTL_ARGS} > /dev/null 2>&1; then
+ echo "\n${DESCRIPTION} does not exist"
+ return 0
+ fi
echo -n "."
sleep 2
done
