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
Léo-Paul Géneau
slapos.core
Commits
2476182b
Commit
2476182b
authored
May 16, 2014
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cli: added missing O_TRUNC to os.open
parent
ec063284
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/cli/configure_client.py
slapos/cli/configure_client.py
+3
-3
No files found.
slapos/cli/configure_client.py
View file @
2476182b
...
...
@@ -108,15 +108,15 @@ def do_configure_client(logger, master_url_web, token, config_path, master_url):
# write everything
with
os
.
fdopen
(
os
.
open
(
config_path
,
os
.
O_CREAT
|
os
.
O_WRONLY
,
0o600
),
'w'
)
as
fout
:
with
os
.
fdopen
(
os
.
open
(
config_path
,
os
.
O_CREAT
|
os
.
O_
TRUNC
|
os
.
O_
WRONLY
,
0o600
),
'w'
)
as
fout
:
logger
.
debug
(
'Writing configuration to %s'
,
config_path
)
fout
.
write
(
cfg
)
with
os
.
fdopen
(
os
.
open
(
cert_path
,
os
.
O_CREAT
|
os
.
O_WRONLY
,
0o600
),
'w'
)
as
fout
:
with
os
.
fdopen
(
os
.
open
(
cert_path
,
os
.
O_CREAT
|
os
.
O_
TRUNC
|
os
.
O_
WRONLY
,
0o600
),
'w'
)
as
fout
:
logger
.
debug
(
'Writing certificate to %s'
,
cert_path
)
fout
.
write
(
certificate
)
with
os
.
fdopen
(
os
.
open
(
key_path
,
os
.
O_CREAT
|
os
.
O_WRONLY
,
0o600
),
'w'
)
as
fout
:
with
os
.
fdopen
(
os
.
open
(
key_path
,
os
.
O_CREAT
|
os
.
O_
TRUNC
|
os
.
O_
WRONLY
,
0o600
),
'w'
)
as
fout
:
logger
.
debug
(
'Writing key to %s'
,
key_path
)
fout
.
write
(
key
)
...
...
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