summaryrefslogtreecommitdiffstats
path: root/nova/context.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/context.py')
-rw-r--r--nova/context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/context.py b/nova/context.py
index 79ad0934d..b0c0603a8 100644
--- a/nova/context.py
+++ b/nova/context.py
@@ -59,7 +59,7 @@ class RequestContext(object):
timestamp = utils.parse_strtime(timestamp)
self.timestamp = timestamp
if not request_id:
- request_id = unicode(uuid.uuid4())
+ request_id = 'req-' + str(utils.gen_uuid())
self.request_id = request_id
self.auth_token = auth_token
self.strategy = strategy