summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-11-13 04:59:57 +0000
committerGerrit Code Review <review@openstack.org>2012-11-13 04:59:57 +0000
commit783bac69fd012263473195e0a3dcde77177c521d (patch)
tree41ec2f879309860f5ccf1f5f9548d91485824e87 /nova/openstack
parent426315ff0396bc87b05da77021f7368a38ee085b (diff)
parentbb3ae3fdaec72af627495ff1ac216a84b96ac5c4 (diff)
Merge "Update uuidutils from openstack common."
Diffstat (limited to 'nova/openstack')
-rw-r--r--nova/openstack/common/uuidutils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/openstack/common/uuidutils.py b/nova/openstack/common/uuidutils.py
index 51042a798..7608acb94 100644
--- a/nova/openstack/common/uuidutils.py
+++ b/nova/openstack/common/uuidutils.py
@@ -22,6 +22,10 @@ UUID related utilities and helper functions.
import uuid
+def generate_uuid():
+ return str(uuid.uuid4())
+
+
def is_uuid_like(val):
"""Returns validation of a value as a UUID.