From 84ca0c6df5a85738ac85ee8cde5dd90b0bbe40ea Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Thu, 22 Feb 2018 20:26:39 +0000 Subject: [PATCH] Use !auto_cleanup as DispVM include_in_backups default --- qubes/vm/dispvm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qubes/vm/dispvm.py b/qubes/vm/dispvm.py index b60279fb..4554998e 100644 --- a/qubes/vm/dispvm.py +++ b/qubes/vm/dispvm.py @@ -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': {