Use !auto_cleanup as DispVM include_in_backups default

This commit is contained in:
Rusty Bird 2018-02-22 20:26:39 +00:00
parent 1562defd42
commit 84ca0c6df5
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -41,6 +41,10 @@ class DispVM(qubes.vm.qubesvm.QubesVM):
auto_cleanup = qubes.property('auto_cleanup', type=bool, default=False,
doc='automatically remove this VM upon shutdown')
include_in_backups = qubes.property('include_in_backups', type=bool,
default=(lambda self: not self.auto_cleanup),
doc='If this domain is to be included in default backup.')
def __init__(self, app, xml, *args, **kwargs):
self.volume_config = {
'root': {