Browse Source

Use !auto_cleanup as DispVM include_in_backups default

Rusty Bird 6 years ago
parent
commit
84ca0c6df5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      qubes/vm/dispvm.py

+ 4 - 0
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': {