f738f5d4d8
qubesadmin.Qubes().domains do not support indexing by VM object. QubesOS/qubes-issues#3037
13 lines
244 B
Python
Executable File
13 lines
244 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
from qubesadmin import Qubes
|
|
|
|
def main():
|
|
app = Qubes()
|
|
for vm in app.domains:
|
|
if vm.klass == 'DispVM' and not vm.is_running():
|
|
if vm.auto_cleanup:
|
|
del app.domains[vm.name]
|
|
|
|
main()
|