From 9aa5638dcfdbed841ab88230c18865242bb73e8e Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 24 Mar 2011 21:39:13 -0400 Subject: [PATCH] Create template_vm property in every VM (defaults to None) Simplify template based VM detection. --- dom0/qvm-core/qubes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 421242f5..742739ee 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -199,6 +199,9 @@ class QubesVm(object): self.uses_default_netvm = uses_default_netvm self.netvm_vm = netvm_vm + # Create template_vm property - used in AppVM, NetVM, ProxyVM + self.template_vm = None + # We use it in remove from disk to avoid removing rpm files (for templates) self.installed_by_rpm = installed_by_rpm