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
förälder 02d8f273f2
incheckning 80450dab92
Ingen känd nyckel hittad för denna signaturen i databasen
GPG-nyckel ID: E7E455013D042EA1

Visa fil

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