Create template_vm property in every VM (defaults to None)
Simplify template based VM detection.
This commit is contained in:
parent
7dca7a5a32
commit
9aa5638dcf
@ -199,6 +199,9 @@ class QubesVm(object):
|
|||||||
self.uses_default_netvm = uses_default_netvm
|
self.uses_default_netvm = uses_default_netvm
|
||||||
self.netvm_vm = netvm_vm
|
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)
|
# We use it in remove from disk to avoid removing rpm files (for templates)
|
||||||
self.installed_by_rpm = installed_by_rpm
|
self.installed_by_rpm = installed_by_rpm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user