Skip to content

Commit b063dd9

Browse files
committed
Fix cncluster backup_nodes ignoring supplied nodes
[static] Signed-off-by: Oriol Muñoz <oriol.munoz@digitalasset.com>
1 parent 6fa082e commit b063dd9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-tools/cncluster

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,10 +1746,12 @@ function subcmd_backup_nodes() {
17461746
fi
17471747
migration_id=$1
17481748

1749-
if [ $# -eq 2 ]; then
1749+
# If only migration is set, backup everything, otherwise backup specified nodes
1750+
# Notably, prod networks which don't have sv-2 % sv-3
1751+
if [ $# -eq 1 ]; then
17501752
nodes="sv-1 sv-2 sv-3 sv-da-1 validator1 splitwell"
17511753
else
1752-
shift 2
1754+
shift 1
17531755
nodes="$*"
17541756
fi
17551757

0 commit comments

Comments
 (0)