mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 08:26:03 +00:00
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
496d3a48ad
commit
d63478b0af
1 changed files with 0 additions and 9 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue