enabling VM stop on expire day, add logging for template provisioning

This commit is contained in:
Jordan Rodgers 2018-02-12 12:22:46 -05:00
parent c2c91b9f37
commit 451f992d8f
2 changed files with 21 additions and 3 deletions

View file

@ -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))