diff --git a/qubesadmin/tools/qvm_ls.py b/qubesadmin/tools/qvm_ls.py index 6296b90..206dd47 100644 --- a/qubesadmin/tools/qvm_ls.py +++ b/qubesadmin/tools/qvm_ls.py @@ -690,6 +690,14 @@ def main(args=None, app=None): else: domains = args.app.domains + if args.all_domains: + # Normally, --all means "all domains except for AdminVM". + # However, in the case of qvm-ls it does not make sense to exclude + # AdminVMs, so we override the list from parser. + domains = [ + vm for vm in args.app.domains if vm.name not in args.exclude + ] + if args.tags: # filter only VMs having at least one of the specified tags domains = [dom for dom in domains