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

Method get_instance_memory

vrtManager/instance.py:19–22  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

17 return inst.info()[0]
18
19 def get_instance_memory(self, name):
20 inst = self.get_instance(name)
21 mem = util.get_xml_path(inst.XMLDesc(0), "/domain/currentMemory")
22 return int(mem) / 1024
23
24 def get_instance_vcpu(self, name):
25 inst = self.get_instance(name)

Callers

nothing calls this directly

Calls 1

get_instanceMethod · 0.80

Tested by

no test coverage detected