mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Fix pep8 errors arising in PR builds
PR build is using pep8 1.7.0 but master is using 1.5.7; curious, but this will fix it either way. Signed-off-by: Andrew Garrett <andrew.garrett@getbraintree.com>
This commit is contained in:
parent
7f9ee9d22c
commit
673d2a520d
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
import os.path
|
import os.path
|
||||||
import glob
|
import glob
|
||||||
|
import random
|
||||||
|
import string
|
||||||
from bootstrapvz.common.tools import load_data
|
from bootstrapvz.common.tools import load_data
|
||||||
|
|
||||||
partial_json = glob.glob(os.path.join(os.path.dirname(__file__), '*.yml'))
|
partial_json = glob.glob(os.path.join(os.path.dirname(__file__), '*.yml'))
|
||||||
|
@ -13,8 +15,6 @@ for path in partial_json + partial_yaml:
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
partials[key] = load_data(path)
|
partials[key] = load_data(path)
|
||||||
|
|
||||||
import random
|
|
||||||
import string
|
|
||||||
pool = string.ascii_uppercase + string.ascii_lowercase + string.digits
|
pool = string.ascii_uppercase + string.ascii_lowercase + string.digits
|
||||||
random_password = ''.join(random.choice(pool) for _ in range(16))
|
random_password = ''.join(random.choice(pool) for _ in range(16))
|
||||||
partials['root_password']['plugins']['root_password']['password'] = random_password
|
partials['root_password']['plugins']['root_password']['password'] = random_password
|
||||||
|
|
Loading…
Add table
Reference in a new issue