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
Carlos Ramos Carreño
slapos.core
Commits
5f39350b
Commit
5f39350b
authored
Oct 09, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explain error
parent
ce0a73b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
slapos/grid/SlapObject.py
slapos/grid/SlapObject.py
+6
-1
No files found.
slapos/grid/SlapObject.py
View file @
5f39350b
...
@@ -38,6 +38,7 @@ from supervisor import xmlrpc
...
@@ -38,6 +38,7 @@ from supervisor import xmlrpc
import
xmlrpclib
import
xmlrpclib
import
pwd
import
pwd
import
utils
import
utils
from
slapos.slap.slap
import
NotFoundError
from
svcbackend
import
getSupervisorRPC
from
svcbackend
import
getSupervisorRPC
from
exception
import
BuildoutFailedError
,
WrongPermissionError
,
\
from
exception
import
BuildoutFailedError
,
WrongPermissionError
,
\
PathDoesNotExistError
PathDoesNotExistError
...
@@ -259,7 +260,11 @@ class Partition(object):
...
@@ -259,7 +260,11 @@ class Partition(object):
not
os
.
path
.
exists
(
self
.
cert_file
):
not
os
.
path
.
exists
(
self
.
cert_file
):
self
.
logger
.
info
(
'Certificate and key not found, downloading to %r and '
self
.
logger
.
info
(
'Certificate and key not found, downloading to %r and '
'%r'
%
(
self
.
cert_file
,
self
.
key_file
))
'%r'
%
(
self
.
cert_file
,
self
.
key_file
))
try
:
partition_certificate
=
self
.
computer_partition
.
getCertificate
()
partition_certificate
=
self
.
computer_partition
.
getCertificate
()
except
NotFoundError
:
raise
NotFoundError
(
'Partition %s is not known from SlapOS Master.'
%
\
self
.
partition_id
)
open
(
self
.
key_file
,
'w'
).
write
(
partition_certificate
[
'key'
])
open
(
self
.
key_file
,
'w'
).
write
(
partition_certificate
[
'key'
])
open
(
self
.
cert_file
,
'w'
).
write
(
partition_certificate
[
'certificate'
])
open
(
self
.
cert_file
,
'w'
).
write
(
partition_certificate
[
'certificate'
])
for
f
in
[
self
.
key_file
,
self
.
cert_file
]:
for
f
in
[
self
.
key_file
,
self
.
cert_file
]:
...
...
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