mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 17:36:59 +02:00
Merge pull request #142 from marineam/notice-404
fix(dev-db/etcd): Handle missing ec2 user-data correctly.
This commit is contained in:
commit
4e88f96fa1
@ -9,7 +9,7 @@ ETCD_BOOTSTRAP="/var/run/etcd/bootstrap.config"
|
||||
/usr/bin/block-until-url $C10N_ENDPOINT
|
||||
/usr/bin/block-until-url $META_URL
|
||||
|
||||
USER_DATA=$(curl -s $META_URL/user-data)
|
||||
USER_DATA=$(curl -s --fail $META_URL/user-data)
|
||||
if [ $? -eq 0 ] && [ ! -z "$USER_DATA" ]; then
|
||||
URL=$USER_DATA
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user