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
Łukasz Nowak
slapos.core
Commits
38654b56
Commit
38654b56
authored
Oct 25, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support delivery-less instances.
parent
bb1826f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
master/product/Vifib/Tool/SlapTool.py
master/product/Vifib/Tool/SlapTool.py
+9
-7
No files found.
master/product/Vifib/Tool/SlapTool.py
View file @
38654b56
...
@@ -1060,6 +1060,15 @@ class SlapTool(BaseTool):
...
@@ -1060,6 +1060,15 @@ class SlapTool(BaseTool):
instance
=
self
.
_getSoftwareInstanceForComputerPartition
(
instance
=
self
.
_getSoftwareInstanceForComputerPartition
(
computer_id
,
computer_id
,
computer_partition_id
)
computer_partition_id
)
if
instance
.
getSlapState
()
==
'destroy_requested'
:
# remove certificate from SI
if
instance
.
getSslKey
()
is
not
None
or
instance
.
getSslCertificate
()
is
not
None
:
instance
.
edit
(
ssl_key
=
None
,
ssl_certificate
=
None
,
)
if
instance
.
getValidationState
()
==
'validated'
:
instance
.
invalidate
()
delivery
=
instance
.
getCausalityValue
(
portal_type
=
[
"Sale Packing List"
])
delivery
=
instance
.
getCausalityValue
(
portal_type
=
[
"Sale Packing List"
])
if
delivery
is
not
None
:
if
delivery
is
not
None
:
portal
=
self
.
getPortalObject
()
portal
=
self
.
getPortalObject
()
...
@@ -1083,13 +1092,6 @@ class SlapTool(BaseTool):
...
@@ -1083,13 +1092,6 @@ class SlapTool(BaseTool):
# even if certificate was already revoked
# even if certificate was already revoked
pass
pass
# remove certificate from SI
instance
.
edit
(
ssl_key
=
None
,
ssl_certificate
=
None
,
)
instance
.
invalidate
()
@
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