# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091
source "/tmp/v/openstack/bin/activate"
mapfile -t os_volumes < <(openstack volume list -f value -c ID --status Available)
-deactivate
echo "---> Orphaned volumes"
if [ ${#os_volumes[@]} -eq 0 ]; then
lftools openstack --os-cloud vex volume remove --minutes 15 "$volume"
done
fi
+
deactivate