diff --git a/ucloud-init.start b/ucloud-init.start index 85190ee..0fe443b 100755 --- a/ucloud-init.start +++ b/ucloud-init.start @@ -82,7 +82,7 @@ setup_dns() { setup_etc_host() { tput setaf 2; tput bold; echo "Setting up /etc/hosts"; tput sgr0; - metadata=$(curl -s http://[2a0a:e5c1:144:1::]:5000) + metadata=$(curl -s http://[2a0a:e5c1:144::]:5000) host_list=$(echo "$metadata" | jq -r '.["host-list"]') host_list_len=$(echo "$host_list" | jq -r '. | length')