mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #29108 from lorengordon/type-enforce-length
Enforce length as an int, fixes #29107
This commit is contained in:
commit
17638c734b
@ -32,6 +32,7 @@ def secure_password(length=20):
|
||||
'''
|
||||
Generate a secure password.
|
||||
'''
|
||||
length = int(length)
|
||||
pw = ''
|
||||
while len(pw) < length:
|
||||
if HAS_RANDOM:
|
||||
|
Loading…
Reference in New Issue
Block a user