VTWO-14496 : allow running scripts on a subset of the nodes

This commit is contained in:
mbenabda
2019-06-20 16:45:28 +02:00
parent e577b6e5ac
commit ee481cc7d4
3 changed files with 4 additions and 4 deletions

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env bash
vagrant status --machine-readable | grep ,state, | cut -d, -f2 | sort | uniq
vagrant status --machine-readable | grep ,state, | cut -d, -f2 | sort | uniq | grep "$1"

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
SCRIPTS_DIR=$(dirname $0)
SCRIPT_NAME=$1
NODE_NAMES=$($SCRIPTS_DIR/node_names)
NODE_NAMES="$($SCRIPTS_DIR/node_names $2)"
cat $SCRIPTS_DIR/$SCRIPT_NAME