Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
e188a032
Commit
e188a032
authored
May 22, 2019
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: Caching key has more them one variable
parent
4905b543
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_checkAndUpdateCapacityScope.py
...kins/slapos_cloud/Computer_checkAndUpdateCapacityScope.py
+3
-3
No files found.
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Computer_checkAndUpdateCapacityScope.py
View file @
e188a032
...
@@ -62,8 +62,8 @@ if can_allocate:
...
@@ -62,8 +62,8 @@ if can_allocate:
def
getSoftwareReleaseCapacity
(
instance
):
def
getSoftwareReleaseCapacity
(
instance
):
software_release_url
=
instance
.
getUrlString
()
software_release_url
=
instance
.
getUrlString
()
software_type
=
instance
.
getSourceReference
()
software_type
=
instance
.
getSourceReference
()
if
software_release_url
in
software_release_capacity_dict
:
if
"%s-%s"
%
(
software_release_url
,
software_type
)
in
software_release_capacity_dict
:
return
software_release_capacity_dict
[
software_release_url
]
return
software_release_capacity_dict
[
"%s-%s"
%
(
software_release_url
,
software_type
)
]
software_release
=
portal
.
portal_catalog
.
getResultValue
(
software_release
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Software Release'
,
portal_type
=
'Software Release'
,
...
@@ -90,7 +90,7 @@ if can_allocate:
...
@@ -90,7 +90,7 @@ if can_allocate:
if
software_release_capacity
is
None
:
if
software_release_capacity
is
None
:
software_release_capacity
=
1
software_release_capacity
=
1
software_release_capacity_dict
[
software_release_url
]
=
software_release_capacity
software_release_capacity_dict
[
"%s-%s"
%
(
software_release_url
,
software_type
)
]
=
software_release_capacity
return
software_release_capacity
return
software_release_capacity
if
allocated_instance
is
not
None
:
if
allocated_instance
is
not
None
:
...
...
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