add fe to hetzner-list
This commit is contained in:
parent
1c68ef8be0
commit
1c9c97e544
1 changed files with 2 additions and 1 deletions
|
@ -637,7 +637,8 @@ EOF
|
|||
|
||||
function update-hetzner-serverlist()
|
||||
{
|
||||
for i in basic-services sc xe tu; do
|
||||
for i in basic-services sc xe tu fe; do
|
||||
echo "Retrieve servers for ${i}"
|
||||
curl -s -H "Authorization: Bearer $(pass show hetzner.com/projects/${i}/api-token)" \
|
||||
https://api.hetzner.cloud/v1/servers \
|
||||
| /usr/bin/jq '.servers[].public_net.ipv4.ip'|sed -e 's/\"//g' \
|
||||
|
|
Loading…
Reference in a new issue