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
Gabriel Monnerat
slapos.core
Commits
258a1ced
Commit
258a1ced
authored
May 21, 2012
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
destroyComputerPartition transition has been removed
parent
4d8e1fe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
master/product/Vifib/Tool/SlapTool.py
master/product/Vifib/Tool/SlapTool.py
+10
-2
No files found.
master/product/Vifib/Tool/SlapTool.py
View file @
258a1ced
...
@@ -778,10 +778,18 @@ class SlapTool(BaseTool):
...
@@ -778,10 +778,18 @@ class SlapTool(BaseTool):
"""
"""
Reports that Computer Partition is destroyed
Reports that Computer Partition is destroyed
"""
"""
software_
instance
=
self
.
_getSoftwareInstanceForComputerPartition
(
instance
=
self
.
_getSoftwareInstanceForComputerPartition
(
computer_id
,
computer_id
,
computer_partition_id
)
computer_partition_id
)
return
software_instance
.
destroyComputerPartition
()
delivery
=
instance
.
getCausalityValue
(
portal_type
=
[
"Sale Packing List"
])
if
delivery
is
not
None
:
portal
=
self
.
getPortalObject
()
line
=
delivery
.
contentValues
(
portal_type
=
"Sale Packing List Line"
)[
0
]
if
line
.
getResource
()
in
[
portal
.
portal_preferences
.
getPreferredInstanceCleanupResource
()]:
if
portal
.
portal_workflow
.
isTransitionPossible
(
delivery
,
'stop'
):
delivery
.
stop
()
delivery
.
deliver
()
@
convertToREST
@
convertToREST
def
_setComputerPartitionConnectionXml
(
self
,
computer_id
,
def
_setComputerPartitionConnectionXml
(
self
,
computer_id
,
...
...
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