diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-11-12 00:39:37 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-11-12 00:39:37 +0000 |
| commit | 5e3c7b50398bd79cf4103f062584c12efc685451 (patch) | |
| tree | 2b4f49f046cbc3dba4df6ab231d52029dc4c3ca3 /openstack/common | |
| parent | 5a6d1b76fddd749f90f00b6bde83d25d27cd1121 (diff) | |
| parent | 251c4f54dc608d217573e3e776bb985a14684603 (diff) | |
| download | oslo-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.py | 4 |
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. |
