diff --git a/manager/models.py b/manager/models.py index f656128..2f883f2 100644 --- a/manager/models.py +++ b/manager/models.py @@ -110,12 +110,12 @@ class CloneContainer(CloneAbstract): vmparams = { 'hostname': vmdata['hostname'], 'description': vmdata['description'], - 'cores': vmdata['cores'], - 'memory': vmdata['memory'], } if vmdata['template']: vmparams |= { 'vmid': vmdata['newid'], + 'cores': vmdata['cores'], + 'memory': vmdata['memory'], 'ostemplate': self.template.volid, 'net0': vmdata['net0'], 'features': 'nesting=1',