diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-11-30 17:46:13 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-11-30 17:46:13 +0000 |
| commit | 632d8da9fd7449a9bb0c45fec8c75f5b8bfa7263 (patch) | |
| tree | 055e2a4e56ced947dc66935b5a7f50c1bf8a4c9d /kolla | |
| parent | bc6a3663cbc578370255455d280212883b4824b3 (diff) | |
| parent | cee89ee8bef92914036189d02745c08894a9955b (diff) | |
| download | kolla-632d8da9fd7449a9bb0c45fec8c75f5b8bfa7263.tar.gz kolla-632d8da9fd7449a9bb0c45fec8c75f5b8bfa7263.zip | |
Merge "Replaces uuid.uuid4 with uuidutils.generate_uuid()"
Diffstat (limited to 'kolla')
| -rwxr-xr-x | kolla/cmd/genpwd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kolla/cmd/genpwd.py b/kolla/cmd/genpwd.py index e548b9ab4..3cc013ee3 100755 --- a/kolla/cmd/genpwd.py +++ b/kolla/cmd/genpwd.py @@ -17,10 +17,10 @@ import os import random import string import sys -import uuid import yaml from Crypto.PublicKey import RSA +from oslo_utils import uuidutils # NOTE(SamYaple): Update the search path to prefer PROJECT_ROOT as the source # of packages to import if we are using local tools instead of @@ -81,7 +81,7 @@ def main(): if k in blank_keys and v is None: continue if k in uuid_keys: - passwords[k] = str(uuid.uuid4()) + passwords[k] = uuidutils.generate_uuid() else: passwords[k] = ''.join([ random.SystemRandom().choice( |
