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
Titouan Soulard
slapos.core
Commits
5a760406
Commit
5a760406
authored
Aug 22, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel: more assertion when creating a virtual master
parent
617a089b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Person_addVirtualMaster.py
...Item/portal_skins/slapos_panel/Person_addVirtualMaster.py
+6
-2
No files found.
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Person_addVirtualMaster.py
View file @
5a760406
...
@@ -53,7 +53,9 @@ customer.newContent(
...
@@ -53,7 +53,9 @@ customer.newContent(
# Compute Node trade condition
# Compute Node trade condition
if
is_compute_node_payable
:
if
is_compute_node_payable
:
source_section_value
=
subscription_request
.
getDestinationSectionValue
()
source_section_value
=
subscription_request
.
getDestinationSectionValue
(
None
)
if
source_section_value
is
None
:
raise
AssertionError
(
'No source section found to generate the invoices'
)
title
=
'Payable Compute Node for: %s'
%
project
.
getTitle
()
title
=
'Payable Compute Node for: %s'
%
project
.
getTitle
()
else
:
else
:
source_section_value
=
None
source_section_value
=
None
...
@@ -73,7 +75,9 @@ sale_trade_condition.validate()
...
@@ -73,7 +75,9 @@ sale_trade_condition.validate()
# Instance Tree trade condition
# Instance Tree trade condition
if
is_instance_tree_payable
:
if
is_instance_tree_payable
:
source_section_value
=
subscription_request
.
getDestinationSectionValue
()
source_section_value
=
subscription_request
.
getDestinationSectionValue
(
None
)
if
source_section_value
is
None
:
raise
AssertionError
(
'No source section found to generate the invoices'
)
title
=
'Payable Instance Tree for: %s'
%
project
.
getTitle
()
title
=
'Payable Instance Tree for: %s'
%
project
.
getTitle
()
else
:
else
:
source_section_value
=
None
source_section_value
=
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