Create template_vm property in every VM (defaults to None)

Simplify template based VM detection.
This commit is contained in:
Marek Marczykowski 2011-03-24 21:39:13 -04:00
parent 7dca7a5a32
commit 9aa5638dcf

View File

@ -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