MCPcopy
hub / github.com/retspen/webvirtcloud / get_cur_vcpu

Method get_cur_vcpu

vrtManager/instance.py:174–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

172 return int(vcpu)
173
174 def get_cur_vcpu(self):
175 cur_vcpu = util.get_xml_path(self._XMLDesc(0), "/domain/vcpu/@current")
176 if cur_vcpu:
177 return int(cur_vcpu)
178
179 def get_memory(self):
180 mem = util.get_xml_path(self._XMLDesc(0), "/domain/memory")

Callers 1

instanceFunction · 0.80

Calls 1

_XMLDescMethod · 0.95

Tested by

no test coverage detected