Skip to content

Commit

Permalink
Merge pull request #354 from appuio/fix/exoscale-replace-osd
Browse files Browse the repository at this point in the history
Update removal of Exoscale node
  • Loading branch information
DebakelOrakel authored Oct 7, 2024
2 parents c19cabe + cd492cf commit 8c52090
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/modules/ROOT/partials/delete-node-vm.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ ifeval::["{cloud_provider}" == "exoscale"]
[source,bash,subs="attributes+"]
----
for node in $(echo -n {node-delete-list}); do
node_id=$(exo vm list -O json | \
node_id=$(exo compute instance list -O json | \
jq --arg storage_node "$node" -r \
'.[] | select(.name==$storage_node) | .id')
'.[] | select(.name? | match($storage_node)) | .id')

echo "Removing node:"
exo vm list | grep "${node_id}"
exo compute instance list | grep "${node_id}"

exo vm delete "${node_id}"
exo compute instance delete "${node_id}" -z "$EXOSCALE_ZONE"
done
----
endif::[]
Expand Down

0 comments on commit 8c52090

Please sign in to comment.