mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Enforce length as an int, fixes #29107
This commit is contained in:
parent
bb28b9186b
commit
c71825d3b0
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue