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:
		
							parent
							
								
									02d8f273f2
								
							
						
					
					
						commit
						80450dab92
					
				| @ -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 \ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Jean-Philippe Ouellet
						Jean-Philippe Ouellet