forked from uncloud/uncloud
Hack/VM: wire get_vnc and list_vms
This commit is contained in:
parent
2b71c1807d
commit
4c6a126d8b
2 changed files with 20 additions and 0 deletions
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue