Commit 5847bf1d authored by Arie Peterson's avatar Arie Peterson

Increase timeout waiting for network interface

parent 3e225f8a
......@@ -104,7 +104,7 @@ setup_mapping()
notify_command="curl -X POST -H \"Authorization: Bearer $api_key\" -H \"Content-Type: application/json\" -d '{\"template\":\"ENCVMBOOTED\",\"HOSTNAME\":\"$(hostname)\",\"identifier\":\"instance-$instance_id\"}' $cosmos_url/api/v2/communication/sendmessage"
timeout=6
timeout=30
hostname=$(echo $cosmos_url | sed -e 's/http[s]*:\/\/\([^:/]*\).*/\1/i')
# Wait until API is reachable (network interface = up)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment