Fixed behavior of Create Standalone VM based on template

private volume is now ignored

fixes QubesOS/qubes-issues#4045
This commit is contained in:
Marta Marczykowska-Górecka 2018-12-08 22:24:48 +01:00
parent 334fefe559
commit bca68b24ba
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -53,7 +53,8 @@ class CreateVMThread(QtCore.QThread):
src_vm = self.app.default_template
else:
src_vm = self.template
vm = self.app.clone_vm(src_vm, self.name, self.vmclass)
vm = self.app.clone_vm(src_vm, self.name, self.vmclass,
ignore_volumes=['private'])
vm.label = self.label
for k, v in self.properties.items():
setattr(vm, k, v)