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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
d8ef2a67
Commit
d8ef2a67
authored
Jan 02, 2025
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: InstanceTree_getNodeAndAllocationSupplyCellList does not always return a node
parent
851fb79e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/ComputePartition_checkAllocationConsistencyState.py
...oring/ComputePartition_checkAllocationConsistencyState.py
+7
-4
No files found.
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/ComputePartition_checkAllocationConsistencyState.py
View file @
d8ef2a67
...
...
@@ -42,7 +42,7 @@ for instance in instance_list:
software_product
,
software_release
,
software_type
=
instance_tree_context
.
InstanceTree_getSoftwareProduct
()
compute_node
,
allocation_cell_list
=
instance_tree_context
.
InstanceTree_getNodeAndAllocationSupplyCellList
(
allocable_
compute_node
,
allocation_cell_list
=
instance_tree_context
.
InstanceTree_getNodeAndAllocationSupplyCellList
(
software_product
=
software_product
,
software_release
=
software_release
,
software_type
=
software_type
)
...
...
@@ -56,10 +56,13 @@ for instance in instance_list:
# }
# }
# }
value
=
(
instance
,
compute_node
)
compute_node_url
=
compute_node
.
getRelativeUrl
()
if
allocable_compute_node
is
None
:
value
=
(
instance
,
compute_node
)
else
:
value
=
(
instance
,
allocable_compute_node
)
compute_node_url
=
value
[
1
].
getRelativeUrl
()
if
compute_node_url
not
in
error_dict
:
error_dict
[
compute_node
.
getRelativeUrl
()
]
=
{}
error_dict
[
compute_node
_url
]
=
{}
if
instance_software_release_url
not
in
error_dict
:
error_dict
[
compute_node_url
][
instance_software_release_url
]
=
{}
if
instance_software_type
not
in
error_dict
[
compute_node_url
][
instance_software_release_url
]:
...
...
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