diff options
| author | Alex Meade <alex.meade@rackspace.com> | 2012-11-12 18:50:12 -0500 |
|---|---|---|
| committer | Alex Meade <alex.meade@rackspace.com> | 2012-11-12 18:50:12 -0500 |
| commit | bb3ae3fdaec72af627495ff1ac216a84b96ac5c4 (patch) | |
| tree | acf062c53040b33590f393afd6eba4fd3586b3c3 /nova/openstack | |
| parent | 9892d001303512160387e3d451064bc7efc7a32a (diff) | |
| download | nova-bb3ae3fdaec72af627495ff1ac216a84b96ac5c4.tar.gz nova-bb3ae3fdaec72af627495ff1ac216a84b96ac5c4.tar.xz nova-bb3ae3fdaec72af627495ff1ac216a84b96ac5c4.zip | |
Update uuidutils from openstack common.
Change-Id: I91fe13eb7dda8aa64187ce5a6d2c34dacdc9f1bb
Diffstat (limited to 'nova/openstack')
| -rw-r--r-- | nova/openstack/common/uuidutils.py | 4 |
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. |
