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

Method get_host_arch

vrtManager/create.py:39–41  ·  view source on GitHub ↗

Get guest capabilities

(self)

Source from the content-addressed store, hash-verified

37 return util.get_xml_path(self.get_cap_xml(), "/capabilities/guest/os_type")
38
39 def get_host_arch(self):
40 """Get guest capabilities"""
41 return util.get_xml_path(self.get_cap_xml(), "/capabilities/host/cpu/arch")
42
43 def create_volume(self, storage, name, size, format='qcow2', metadata=False):
44 size = int(size) * 1073741824

Callers 1

create_instanceMethod · 0.95

Calls 1

get_cap_xmlMethod · 0.80

Tested by

no test coverage detected