Skip to content

Commit

Permalink
Fix Exoscale remove node how-to
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Aug 6, 2024
1 parent 78710fe commit 9cb029d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/how-tos/exoscale/remove_node.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ It has to be the one with the highest terraform index.
# Grab JSON copy of current Terraform state
terraform state pull > .tfstate.json
export NODE_TO_REMOVE=$(jq --arg index "$node_count" -r \
export NODE_TO_REMOVE=$(jq -r \
'.resources[] |
select(.module=="module.cluster.module.worker" and .type=="exoscale_compute") |
.instances[$index|tonumber-1] |
.instances[.instances|length-1] |
.attributes.hostname' \
.tfstate.json)
echo $NODE_TO_REMOVE
Expand Down

0 comments on commit 9cb029d

Please sign in to comment.