summaryrefslogtreecommitdiffstats
path: root/openstack/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-11-12 00:39:37 +0000
committerGerrit Code Review <review@openstack.org>2012-11-12 00:39:37 +0000
commit5e3c7b50398bd79cf4103f062584c12efc685451 (patch)
tree2b4f49f046cbc3dba4df6ab231d52029dc4c3ca3 /openstack/common
parent5a6d1b76fddd749f90f00b6bde83d25d27cd1121 (diff)
parent251c4f54dc608d217573e3e776bb985a14684603 (diff)
downloadoslo-5e3c7b50398bd79cf4103f062584c12efc685451.tar.gz
oslo-5e3c7b50398bd79cf4103f062584c12efc685451.tar.xz
oslo-5e3c7b50398bd79cf4103f062584c12efc685451.zip
Merge "Add generate_uuid to uuidutils."
Diffstat (limited to 'openstack/common')
-rw-r--r--openstack/common/uuidutils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/openstack/common/uuidutils.py b/openstack/common/uuidutils.py
index 51042a7..7608acb 100644
--- a/openstack/common/uuidutils.py
+++ b/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.