Update action.yml

This commit is contained in:
Igor
2023-09-17 14:57:15 +02:00
committed by GitHub
parent 0c5b23090c
commit ce8edf775d

View File

@@ -68,10 +68,10 @@ runs:
# failover
#if (( ${#SERVERS[@]} == 0 )); then
SERVERS=(${{ inputs.failoverserver }})
#SERVERS=(${{ inputs.failoverserver }})
#fi
for server_id in "${SERVERS[@]}"; do
for server_id in ${{ inputs.failoverserver }}; do
unset REGION LATITUDE LONGITUDE
COMMAND=$(curl -sH "Authorization: Token ${{ inputs.netbox }}" -H "Accept: application/json; indent=4" \
"https://stuff.armbian.com/netbox/api/virtualization/virtual-machines/?limit=500&name__empty=false&id=$server_id" | jq)