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
dbbc98b8
authored
Dec 28, 2022
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove setup max
parent
f2876140
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
circle/dashboard/views/vm.py
+1
-1
circle/vm/models/instance.py
+2
-2
No files found.
circle/dashboard/views/vm.py
View file @
dbbc98b8
...
...
@@ -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
)
...
...
circle/vm/models/instance.py
View file @
dbbc98b8
...
...
@@ -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
()
...
...
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