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
0f6dc875
Commit
0f6dc875
authored
Sep 09, 2024
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: return after cancel the subscription request
parent
6de3c1bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_validateIfSubmitted.py
...iption_request/SubscriptionRequest_validateIfSubmitted.py
+3
-2
No files found.
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_validateIfSubmitted.py
View file @
0f6dc875
...
@@ -29,9 +29,10 @@ if item is None:
...
@@ -29,9 +29,10 @@ if item is None:
raise
ValueError
(
'Unsupported resource: %s'
%
resource
.
getRelativeUrl
())
raise
ValueError
(
'Unsupported resource: %s'
%
resource
.
getRelativeUrl
())
if
item
.
getValidationState
()
in
[
'invalidated'
,
'archived'
]:
if
item
.
getValidationState
()
in
[
'invalidated'
,
'archived'
]:
subscription_request
.
cancel
(
return
subscription_request
.
cancel
(
comment
=
"%s is %s."
%
(
item
.
getPortalType
(),
item
.
getValidationState
()))
comment
=
"%s is %s."
%
(
item
.
getPortalType
(),
item
.
getValidationState
()))
return
markHistory
(
subscription_request
,
'We cancelled your subscription request, the related instance was destroyed, invalidated or archived.'
)
# If the virtual master is not in the expected subscription status,
# If the virtual master is not in the expected subscription status,
# do not accept any new service (compute node, instance) for it
# do not accept any new service (compute node, instance) for it
...
...
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