Hack/VM: wire get_vnc and list_vms

This commit is contained in:
fnux 2020-01-28 11:02:18 +01:00
commit 4c6a126d8b
2 changed files with 20 additions and 0 deletions

View file

@ -111,3 +111,13 @@ class VM(object):
print(self.vmm.get_status(self.uuid))
def vnc_addr(self):
if not self.uuid:
print("Please specific an UUID with the --uuid flag.")
exit(1)
print(self.vmm.get_vnc(self.uuid))
def list(self):
print(self.vmm.discover())