diff options
author | Zhongyue Luo <zhongyue.nah@intel.com> | 2012-11-14 18:25:59 +0800 |
---|---|---|
committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2012-11-14 22:16:24 +0900 |
commit | 5beeed884753c3fb196cb66684d761dfc424b0db (patch) | |
tree | 38a884a4507fc07d7ed10269fe1c9a23a1d1afd1 /nova/context.py | |
parent | 6375ca7eb56b13bb4794b843a5eaef8118f0dff6 (diff) | |
download | nova-5beeed884753c3fb196cb66684d761dfc424b0db.tar.gz |
Remove gen_uuid()
Removed gen_uuid and uuid related unittests
Replaced utils.gen_uuid() with uuid.uuid4()
Change-Id: I3020a0d67525eb73cfb8873d2570c93e2022bb76
Diffstat (limited to 'nova/context.py')
-rw-r--r-- | nova/context.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/context.py b/nova/context.py index 74f7a3c23d..094e2bffbc 100644 --- a/nova/context.py +++ b/nova/context.py @@ -20,19 +20,19 @@ """RequestContext: context for requests that persist through all of nova.""" import copy +import uuid from nova.openstack.common import local from nova.openstack.common import log as logging from nova.openstack.common import timeutils from nova import policy -from nova import utils LOG = logging.getLogger(__name__) def generate_request_id(): - return 'req-' + str(utils.gen_uuid()) + return 'req-' + str(uuid.uuid4()) class RequestContext(object): |