Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f056e0a0
authored
Dec 28, 2022
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo2
parent
24faa8a1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
circle/dashboard/views/vm.py
+1
-1
circle/vm/operations.py
+1
-1
No files found.
circle/dashboard/views/vm.py
View file @
f056e0a0
...
...
@@ -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
)
...
...
circle/vm/operations.py
View file @
f056e0a0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment