This commit is contained in:
Sebastian
2024-03-24 08:07:25 +01:00
parent 07a808f6ad
commit 253f5bebf9
3 changed files with 8 additions and 70 deletions

View File

@@ -13,11 +13,14 @@ for key in $(jq -r 'keys[]' <<< "$json"); do
default_array+=($default_values)
done
for node in $default_array; do
size_in_gb=$($BASEPATH/restore-volumes.sh --print-size-only)
for node in "${default_array[@]}"; do
#echo "check $node"
size_in_gb=$($BASEPATH/restore-volumes.sh "$node" --print-size-only)
if [ $? -eq 0 ]; then
echo "$node: $sizeG"
echo "$node: $size_in_gb"
# else
# echo "$node can not"
fi
done