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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.core
Commits
2390a527
Commit
2390a527
authored
Sep 26, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close computer capacity scope if there is not more free partition
parent
144358f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
master/bt5/vifib_slapos_capacity/SkinTemplateItem/portal_skins/vifib_slapos_capacity/Computer_checkAndDesactivatePartitionList.xml
...os_capacity/Computer_checkAndDesactivatePartitionList.xml
+10
-0
master/bt5/vifib_slapos_capacity/bt/revision
master/bt5/vifib_slapos_capacity/bt/revision
+1
-1
No files found.
master/bt5/vifib_slapos_capacity/SkinTemplateItem/portal_skins/vifib_slapos_capacity/Computer_checkAndDesactivatePartitionList.xml
View file @
2390a527
...
@@ -119,6 +119,16 @@ if can_allocate:\n
...
@@ -119,6 +119,16 @@ if can_allocate:\n
comment = \'Computer capacity limit exceded\'\n
comment = \'Computer capacity limit exceded\'\n
break\n
break\n
\n
\n
if can_allocate:\n
result_list = portal.portal_catalog.portal_catalog(\n
parent_uid=computer.getUid(),\n
portal_type=\'Computer Partition\',\n
free_for_request=1,\n
limit=1)\n
if len(result_list) == 0:\n
can_allocate = False\n
comment = \'No free partition left\'\n
\n
new_value = None\n
new_value = None\n
if can_allocate:\n
if can_allocate:\n
if computer.getCapacityScope() == \'close\':\n
if computer.getCapacityScope() == \'close\':\n
...
...
master/bt5/vifib_slapos_capacity/bt/revision
View file @
2390a527
7
8
\ No newline at end of file
\ No newline at end of file
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