make the volume scripts ignore ephemeral volumes
This commit is contained in:
@@ -14,6 +14,7 @@ fi
|
||||
CONFIG_FILE="$1.yml"
|
||||
GLOBS_FILE="${2:-node-key-globs.txt}"
|
||||
SCRIPT_DIR="$(dirname "$0")"
|
||||
source "$SCRIPT_DIR/volume-utils.sh"
|
||||
|
||||
# Try to find config file in multiple locations
|
||||
if [[ -f "$SCRIPT_DIR/$CONFIG_FILE" ]]; then
|
||||
@@ -42,7 +43,7 @@ fi
|
||||
|
||||
# Read volume keys from config file
|
||||
echo "Reading volume configuration from $CONFIG_PATH..."
|
||||
keys=$(cat "$CONFIG_PATH" | yaml2json - | jq '.volumes' | jq -r 'keys[]')
|
||||
keys=$(get_persistent_volume_keys "$CONFIG_PATH")
|
||||
|
||||
if [[ -z "$keys" ]]; then
|
||||
echo "Error: No volumes found in configuration"
|
||||
|
||||
Reference in New Issue
Block a user