MCPcopy Index your code
hub / github.com/retspen/webvirtcloud / get_capacity

Method get_capacity

vrtManager/storage.py:150–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148 return long(util.get_xml_path(self._XMLDesc(0), "/pool/available"))
149
150 def get_capacity(self):
151 return long(util.get_xml_path(self._XMLDesc(0), "/pool/capacity"))
152
153 def get_pretty_allocation(self):
154 return util.pretty_bytes(self.get_allocation())

Callers 1

get_pretty_capacityMethod · 0.95

Calls 1

_XMLDescMethod · 0.95

Tested by

no test coverage detected