Skip to content

Commit b5436e6

Browse files
committed
Address Copilot's comment
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
1 parent fdb597f commit b5436e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

omec-sub-provision/templates/deployment-simapp.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ spec:
5555
sleep 2
5656
done
5757
echo "${WEBUI_ADDR} DNS resolved, checking HTTP endpoint readiness..."
58-
until wget -q -O- --timeout=2 http://${WEBUI_ADDR}:${WEBUI_PORT}/config/v1/ >/dev/null 2>&1; do
58+
until wget --spider --timeout=2 -S http://${WEBUI_ADDR}:${WEBUI_PORT}/config/v1/ 2>&1 | grep -q "HTTP/"; do
5959
echo "Waiting for ${WEBUI_ADDR} HTTP endpoint to be ready..."
60+
echo "Endpoint check failed, response:"
61+
wget --spider --timeout=2 -S http://${WEBUI_ADDR}:${WEBUI_PORT}/config/v1/ 2>&1 | head -n 5 || echo "Connection failed or timed out"
6062
sleep 3
6163
done
6264
echo "${WEBUI_ADDR} is ready, starting simapp..."

0 commit comments

Comments
 (0)