1
0
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:
2021-10-01 19:08:38 +02:00
parent a7b0984f77
commit fe422576cd

4
box.py
View File

@@ -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