Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
slapos.toolbox
Commits
72ae7f9c
Commit
72ae7f9c
authored
11 years ago
by
Cédric Le Ninivin
Browse files
Options
Download
Email Patches
Plain Diff
slaprunner: check htpasswd file exists before removal
parent
55d07491
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
slapos/runner/utils.py
slapos/runner/utils.py
+2
-1
No files found.
slapos/runner/utils.py
View file @
72ae7f9c
...
...
@@ -84,7 +84,8 @@ def saveSession(config, account):
# Htpasswd file for cloud9
# XXX Cedric Le N order of account list values suppose to be fixed
# Remove former file to avoid aoutdated accounts
os
.
remove
(
htpasswdfile
)
if
os
.
path
.
exists
(
htpasswdfile
):
os
.
remove
(
htpasswdfile
)
passwd
=
HtpasswdFile
(
htpasswdfile
,
create
=
True
)
passwd
.
update
(
account
[
0
],
account
[
1
])
passwd
.
save
()
...
...
This diff is collapsed.
Click to expand it.
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