Commit f056e0a0 by Karsa Zoltán István

typo2

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