From d63478b0af164d92311cb3e82adec9898725e419 Mon Sep 17 00:00:00 2001 From: catborise Date: Sun, 8 Nov 2026 12:16:19 +0300 Subject: [PATCH] refactor(vrtManager): remove the pool allocation, available and capacity getters Nothing calls wvmStorage.get_allocation(), get_available() or get_capacity(); the pages read a pool's space with get_size(), one info call. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea --- vrtManager/storage.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/vrtManager/storage.py b/vrtManager/storage.py index 1713c827..10535a3d 100644 --- a/vrtManager/storage.py +++ b/vrtManager/storage.py @@ -217,15 +217,6 @@ class wvmStorage(wvmConnect): def get_source_name(self): return util.get_xml_path(self._XMLDesc(0), "/pool/source/name") - def get_allocation(self): - return int(util.get_xml_path(self._XMLDesc(0), "/pool/allocation")) - - def get_available(self): - return int(util.get_xml_path(self._XMLDesc(0), "/pool/available")) - - def get_capacity(self): - return int(util.get_xml_path(self._XMLDesc(0), "/pool/capacity")) - def get_rbd_source(self): def hosts(doc): hosts_array = []