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

Method get_vcpu

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

Source from the content-addressed store, hash-verified

168 return self.instance.UUIDString()
169
170 def get_vcpu(self):
171 vcpu = util.get_xml_path(self._XMLDesc(0), "/domain/vcpu")
172 return int(vcpu)
173
174 def get_cur_vcpu(self):
175 cur_vcpu = util.get_xml_path(self._XMLDesc(0), "/domain/vcpu/@current")

Callers 1

instanceFunction · 0.80

Calls 1

_XMLDescMethod · 0.95

Tested by

no test coverage detected