Commit f056e0a0 by Karsa Zoltán István

typo2

parent 24faa8a1
......@@ -210,7 +210,7 @@ class HotplugVCPUSetREST(APIView):
instance = Instance.objects.get(pk=pk)
data = JSONParser().parse(request)
num_cores = int(data["num_cores"])
instance.hotplug_mem(user=request.user, vcpu=num_cores)
instance.hotplug_vcpu(user=request.user, vcpu=num_cores)
instance.num_cores = num_cores
instance.save()
serializer = InstanceSerializer(instance)
......
......@@ -1481,7 +1481,7 @@ class HotPlugVCPU(RemoteInstanceOperation):
task = vm_tasks.hotplug_vcpuset
def _get_remote_args(self, **kwargs):
return (super(HotPlugVCPU, self)._get_remote_args(**kwargs) + [kwargs["num_cores"]] )
return (super(HotPlugVCPU, self)._get_remote_args(**kwargs) + [kwargs["vcpu"]] )
@register_operation
......
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