Fix cleanup-dispvms script

qubesadmin.Qubes().domains do not support indexing by VM object.

QubesOS/qubes-issues#3037
This commit is contained in:
Marek Marczykowski-Górecki 2017-12-14 02:12:24 +01:00
parent 297cb4d012
commit f738f5d4d8
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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()