Commit dbbc98b8 by Karsa Zoltán István

remove setup max

parent f2876140
...@@ -1051,7 +1051,7 @@ class VmResourcesChangeView(VmOperationView): ...@@ -1051,7 +1051,7 @@ class VmResourcesChangeView(VmOperationView):
"#resources") "#resources")
else: else:
extra = form.cleaned_data extra = form.cleaned_data
extra['max_ram_size'] = extra['ram_size'] #extra['max_ram_size'] = extra['ram_size']
return super(VmResourcesChangeView, self).post(request, extra, return super(VmResourcesChangeView, self).post(request, extra,
*args, **kwargs) *args, **kwargs)
......
...@@ -548,8 +548,8 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin, ...@@ -548,8 +548,8 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
# create instance and do additional setup # create instance and do additional setup
inst = cls(**params) inst = cls(**params)
if not params["num_cores_max"]: #if not params["num_cores_max"]:
inst.num_cores_max = inst.num_cores #inst.num_cores_max = inst.num_cores
# save instance # save instance
inst.full_clean() inst.full_clean()
inst.save() inst.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment