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
Xiaohe Cao
slapos
Commits
8ccb11d1
Commit
8ccb11d1
authored
12 years ago
by
Vincent Pelletier
Browse files
Options
Download
Email Patches
Plain Diff
Document a bit more verbosely the purpose of generatePassword method.
Especially, explain what is meant by "last call".
parent
4c6fd16c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
slapos/recipe/librecipe/generic.py
slapos/recipe/librecipe/generic.py
+9
-0
No files found.
slapos/recipe/librecipe/generic.py
View file @
8ccb11d1
...
...
@@ -125,6 +125,15 @@ class GenericBaseRecipe(object):
'template/%s'
%
template_name
)
def
generatePassword
(
self
,
len_
=
32
):
"""
The purpose of this method is to generate a password which doesn't change
from one execution to the next, so the generated password doesn't change
on each slapgrid-sr execution.
Currently, it returns a hardcoded password because no decision has been
taken on where a generated password should be kept (so it is generated
once only).
"""
# TODO: implement a real password generator which remember the last
# call.
return
"insecure"
...
...
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