Fix cleanup-dispvms script
qubesadmin.Qubes().domains do not support indexing by VM object. QubesOS/qubes-issues#3037
This commit is contained in:
parent
297cb4d012
commit
f738f5d4d8
@ -7,6 +7,6 @@ def main():
|
||||
for vm in app.domains:
|
||||
if vm.klass == 'DispVM' and not vm.is_running():
|
||||
if vm.auto_cleanup:
|
||||
del app.domains[vm]
|
||||
del app.domains[vm.name]
|
||||
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user