Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
alecs_myu
erp5
Commits
63709550
Commit
63709550
authored
Jun 12, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Up
parent
88f5ab4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
erp5/util/testnode/SlapOSControler.py
erp5/util/testnode/SlapOSControler.py
+4
-4
No files found.
erp5/util/testnode/SlapOSControler.py
View file @
63709550
...
@@ -71,7 +71,7 @@ class SlapOSControler(object):
...
@@ -71,7 +71,7 @@ class SlapOSControler(object):
def
createSlaposConfigurationFileAccount
(
self
,
key
,
certificate
,
config
,
log
):
def
createSlaposConfigurationFileAccount
(
self
,
key
,
certificate
,
config
,
log
):
# Create "slapos_account" directory in the "slapos_directory"
# Create "slapos_account" directory in the "slapos_directory"
slapos_account_directory
=
os
.
path
.
join
(
config
[
'slapos_directory'
],
"slapos_account"
)
slapos_account_directory
=
os
.
path
.
join
(
config
[
'slapos_directory'
],
"slapos_account"
)
SlapOSControler
.
createFolder
(
slapos_account_directory
)
createFolder
(
slapos_account_directory
)
# Create slapos-account files
# Create slapos-account files
slapos_account_key_path
=
os
.
path
.
join
(
slapos_account_directory
,
"key"
)
slapos_account_key_path
=
os
.
path
.
join
(
slapos_account_directory
,
"key"
)
slapos_account_certificate_path
=
os
.
path
.
join
(
slapos_account_directory
,
"certificate"
)
slapos_account_certificate_path
=
os
.
path
.
join
(
slapos_account_directory
,
"certificate"
)
...
@@ -81,11 +81,11 @@ class SlapOSControler(object):
...
@@ -81,11 +81,11 @@ class SlapOSControler(object):
config
[
'server_url'
],
config
[
'server_url'
],
slapos_account_certificate_path
,
slapos_account_certificate_path
,
slapos_account_key_path
)
slapos_account_key_path
)
SlapOSControler
.
createFile
(
slapos_account_key_path
,
"w"
,
key
)
createFile
(
slapos_account_key_path
,
"w"
,
key
)
log
(
"% created."
,
slapos_account_key_path
)
log
(
"% created."
,
slapos_account_key_path
)
SlapOSControler
.
createFile
(
slapos_account_certificate_path
,
"w"
,
certificate
)
createFile
(
slapos_account_certificate_path
,
"w"
,
certificate
)
log
(
"% created."
,
slapos_account_certificate_path
)
log
(
"% created."
,
slapos_account_certificate_path
)
SlapOSControler
.
createFile
(
configuration_file_path
,
"w"
,
configuration_file_value
)
createFile
(
configuration_file_path
,
"w"
,
configuration_file_value
)
log
(
"% created."
,
configuration_file_path
)
log
(
"% created."
,
configuration_file_path
)
self
.
configuration_file_path
=
configuration_file_path
self
.
configuration_file_path
=
configuration_file_path
...
...
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