From 80450dab924def78e9e6343e2296c308307d6c0e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Ouellet Date: Sun, 27 Nov 2016 00:49:33 -0500 Subject: [PATCH] Add name-raw field for qvm-ls Useful to avoid needing to `... | tr -d '<>{}[]='` just to get clean VM names in scripts. Fixes https://github.com/QubesOS/qubes-issues/issues/2444 --- qvm-tools/qvm-ls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qvm-tools/qvm-ls b/qvm-tools/qvm-ls index ce8e8609..2c4f8f81 100755 --- a/qvm-tools/qvm-ls +++ b/qvm-tools/qvm-ls @@ -41,6 +41,8 @@ fields = { + ('>' if vm.is_disposablevm() else '')\ + ('}' if vm.is_netvm() else '')"}, + "name-raw": {"func": "vm.name"}, + "type": {"func": "'HVM' if vm.type == 'HVM' else \ ('Tpl' if vm.is_template() else \ ('' if vm.type in ['AppVM', 'DisposableVM'] else \