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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
74172079
Commit
74172079
authored
Feb 06, 2024
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_pdm: if not person can be found, search for everybody only
parent
79582df7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
master/bt5/slapos_pdm/SkinTemplateItem/portal_skins/slapos_pdm/InstanceTree_createUpgradeDecision.py
...al_skins/slapos_pdm/InstanceTree_createUpgradeDecision.py
+4
-5
No files found.
master/bt5/slapos_pdm/SkinTemplateItem/portal_skins/slapos_pdm/InstanceTree_createUpgradeDecision.py
View file @
74172079
...
...
@@ -61,9 +61,7 @@ if len(root_instance_list) != 0:
elif
(
compute_node
.
getPortalType
()
!=
'Remote Node'
):
return
person
=
context
.
getDestinationSectionValue
()
if
person
is
None
:
return
person
=
context
.
getDestinationSectionValue
(
checked_permission
=
'Access contents information'
)
# Search if the product with the same type
# XXX search only for the main node
...
...
@@ -102,11 +100,12 @@ if len(allocation_cell_list) == 1:
return
decision_title
=
'A new upgrade is available for %s'
%
instance_tree
.
getTitle
()
person_relative_url
=
context
.
getDestinationSection
()
upgrade_decision
=
portal
.
upgrade_decision_module
.
newContent
(
portal_type
=
'Upgrade Decision'
,
title
=
decision_title
,
destination_section
_value
=
person
,
destination_decision
_value
=
person
,
destination_section
=
person_relative_url
,
destination_decision
=
person_relative_url
,
destination_project_value
=
instance_tree
.
getFollowUpValue
(),
resource_value
=
software_product
,
variation_category_list
=
allocation_cell_list
[
0
].
getVariationCategoryList
(),
...
...
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