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
16
Merge Requests
16
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
nexedi
slapos.core
Commits
fd78b46d
Commit
fd78b46d
authored
May 13, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: do not destroy all slave on a partition
It should be an action on an instance node
parent
2cc21a42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_viewRenameAndRequestDestroyAction.py
...oud/SoftwareInstance_viewRenameAndRequestDestroyAction.py
+0
-9
No files found.
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_viewRenameAndRequestDestroyAction.py
View file @
fd78b46d
...
...
@@ -13,13 +13,4 @@ if context.getSlapState() not in ["stop_requested", "start_requested"]:
# from a python script
context
.
SoftwareInstance_renameAndRequestDestroy
()
# Request Destroy on all Slaves allocated on the same partition
compute_partition
=
context
.
getAggregateValue
(
portal_type
=
"Compute Partition"
)
if
compute_partition
is
not
None
:
for
slave
in
compute_partition
.
getAggregateRelatedValueList
(
portal_type
=
"Slave Instance"
):
slave
.
SoftwareInstance_renameAndRequestDestroy
()
return
context
.
Base_redirect
(
keep_items
=
{
"portal_status_message"
:
"Destroy requested."
})
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