From 84677fa70bbc716abf223e639e0bf6f7771465ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 24 Jun 2016 23:05:15 +0200 Subject: [PATCH] qvm-ls: fix handling VM list on command line --- qvm-tools/qvm-ls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qvm-tools/qvm-ls b/qvm-tools/qvm-ls index 03e43ab4..c4af2d7c 100755 --- a/qvm-tools/qvm-ls +++ b/qvm-tools/qvm-ls @@ -190,7 +190,7 @@ def main(): vms_list = [vm for vm in qvm_collection.values()] #assume VMs are presented in desired order: if len(arguments.VMs) > 0: - vms_list = [vm for vm in vms_list if vm.name in arguments.VMs] + vms_to_display = [vm for vm in vms_list if vm.name in arguments.VMs] #otherwise, format them accordingly: else: no_vms = len (vms_list)