From fe422576cda42dc130f9ab7db3c5ba41722a1677 Mon Sep 17 00:00:00 2001 From: gryf Date: Fri, 1 Oct 2021 19:08:38 +0200 Subject: [PATCH] Fixed long param for listing VMs. --- box.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/box.py b/box.py index 104492a..76ce1a3 100755 --- a/box.py +++ b/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