Merge remote-tracking branch 'origin/pr/138'

* origin/pr/138:
  Fixed behavior of Create Standalone VM based on template
This commit is contained in:
Marek Marczykowski-Górecki 2018-12-09 18:42:00 +01:00
commit 25586d972f
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

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)