mirror of
https://github.com/gryf/boxpy.git
synced 2025-12-19 21:47:59 +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
|
continue
|
||||||
if long_list:
|
if long_list:
|
||||||
info = "\n".join(Run(['vboxmanage', 'showvminfo',
|
info = "\n".join(Run(['vboxmanage', 'showvminfo',
|
||||||
info]).stdout.split('\n'))
|
name]).stdout.split('\n'))
|
||||||
machines[name] = info
|
machines[name] = info
|
||||||
return machines
|
return machines
|
||||||
|
|
||||||
@@ -1217,6 +1217,8 @@ def vmlist(args):
|
|||||||
LOG.header('All VMs:')
|
LOG.header('All VMs:')
|
||||||
|
|
||||||
for key in sorted(vms):
|
for key in sorted(vms):
|
||||||
|
if args.long:
|
||||||
|
LOG.header(f"\n{key}")
|
||||||
LOG.info(vms[key])
|
LOG.info(vms[key])
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user