Commit dbbc98b8 by Karsa Zoltán István

remove setup max

parent f2876140
......@@ -1051,7 +1051,7 @@ class VmResourcesChangeView(VmOperationView):
"#resources")
else:
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,
*args, **kwargs)
......
......@@ -548,8 +548,8 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
# create instance and do additional setup
inst = cls(**params)
if not params["num_cores_max"]:
inst.num_cores_max = inst.num_cores
#if not params["num_cores_max"]:
#inst.num_cores_max = inst.num_cores
# save instance
inst.full_clean()
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