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

Method get_instances

vrtManager/connection.py:404–411  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

402 return self.wvm.lookupByName(name)
403
404 def get_instances(self):
405 instances = []
406 for inst_id in self.wvm.listDomainsID():
407 dom = self.wvm.lookupByID(int(inst_id))
408 instances.append(dom.name())
409 for name in self.wvm.listDefinedDomains():
410 instances.append(name)
411 return instances
412
413 def get_snapshots(self):
414 instance = []

Callers 2

get_host_instancesMethod · 0.95
create_instanceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected