mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
enabling VM stop on expire day, add logging for template provisioning
This commit is contained in:
parent
c2c91b9f37
commit
451f992d8f
2 changed files with 21 additions and 3 deletions
|
|
@ -2,6 +2,9 @@ import string
|
|||
import random
|
||||
|
||||
|
||||
def gen_password(length, charset="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"):
|
||||
def gen_password(
|
||||
length,
|
||||
charset="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"
|
||||
):
|
||||
# use secrets module once this works in python 3.6
|
||||
return ''.join(random.choice(charset) for x in range(length))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue