mirror of
https://github.com/gryf/boxpy.git
synced 2025-12-18 21:10:17 +01:00
Fixed long param for listing VMs.
This commit is contained in:
4
box.py
4
box.py
@@ -637,7 +637,7 @@ class VBoxManage:
|
||||
continue
|
||||
if long_list:
|
||||
info = "\n".join(Run(['vboxmanage', 'showvminfo',
|
||||
info]).stdout.split('\n'))
|
||||
name]).stdout.split('\n'))
|
||||
machines[name] = info
|
||||
return machines
|
||||
|
||||
@@ -1217,6 +1217,8 @@ def vmlist(args):
|
||||
LOG.header('All VMs:')
|
||||
|
||||
for key in sorted(vms):
|
||||
if args.long:
|
||||
LOG.header(f"\n{key}")
|
||||
LOG.info(vms[key])
|
||||
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user