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
This commit is contained in:
Jean-Philippe Ouellet 2016-11-27 00:49:33 -05:00
parent 02d8f273f2
commit 80450dab92
No known key found for this signature in database
GPG Key ID: E7E455013D042EA1

View File

@ -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 \