Update powerwall.sh
This commit is contained in:
13
powerwall.sh
13
powerwall.sh
@@ -903,7 +903,18 @@ GET_SNAPSHOTS(){
|
|||||||
result=`${PW_FOLDER}/esxi-scripts/get-snapshots.ps1 ${ESXIHOST}`
|
result=`${PW_FOLDER}/esxi-scripts/get-snapshots.ps1 ${ESXIHOST}`
|
||||||
if [ "${result}" != "" ]; then
|
if [ "${result}" != "" ]; then
|
||||||
echo -en "\033[2K\033[1A"
|
echo -en "\033[2K\033[1A"
|
||||||
echo ${result} | jq
|
# echo ${result} | jq
|
||||||
|
|
||||||
|
|
||||||
|
for row in $(echo ${result} | jq -r '.[] | @base64'); do
|
||||||
|
vm=`echo ${row} | base64 --decode | jq -r '.VM'`
|
||||||
|
name=`echo ${row} | base64 --decode | jq -r '.Name'`
|
||||||
|
created=`echo ${row} | base64 --decode | jq -r '.Created'`
|
||||||
|
size=`echo ${row} | base64 --decode | jq -r '.SizeGB'`
|
||||||
|
echo "$vm - $name - $created - $size"
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo -e "\033[2K\e[0K\r No snapshots found"
|
echo -e "\033[2K\e[0K\r No snapshots found"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user