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
f08452e2
Commit
f08452e2
authored
Nov 15, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: XXX forbid creation of Software Instance
Use must validate the Open Sale Order first
parent
b87a51a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/person_slap_interface_workflow/script_Person_requestSoftwareInstance.py
...terface_workflow/script_Person_requestSoftwareInstance.py
+4
-0
No files found.
master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/person_slap_interface_workflow/script_Person_requestSoftwareInstance.py
View file @
f08452e2
...
@@ -82,6 +82,9 @@ elif (root_state == "destroyed"):
...
@@ -82,6 +82,9 @@ elif (root_state == "destroyed"):
else
:
else
:
raise
ValueError
,
"state should be started, stopped or destroyed"
raise
ValueError
,
"state should be started, stopped or destroyed"
# XXX forbid creation of the Software Instance
# the Software Instance parameters must match the Open Sale Order pricing criteria
"""
request_instance_tree.requestInstance(
request_instance_tree.requestInstance(
software_release=software_release_url_string,
software_release=software_release_url_string,
software_title=software_title,
software_title=software_title,
...
@@ -91,6 +94,7 @@ request_instance_tree.requestInstance(
...
@@ -91,6 +94,7 @@ request_instance_tree.requestInstance(
shared=is_slave,
shared=is_slave,
state=root_state,
state=root_state,
)
)
"""
# Change the state at the end to allow to execute updateLocalRoles only once in the transaction
# Change the state at the end to allow to execute updateLocalRoles only once in the transaction
validation_state
=
request_instance_tree
.
getValidationState
()
validation_state
=
request_instance_tree
.
getValidationState
()
...
...
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