diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-11-05 20:00:38 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-11-05 20:00:38 +0000 |
| commit | 8fecf6e57a60c55c7e5d32810494e3ff3690ec39 (patch) | |
| tree | 4fbf1c046fe758b139db04ab14371bca47ad70d0 /nova/utils.py | |
| parent | 10979da33ca790b86976c1909624c1440020abe0 (diff) | |
| parent | d2e7bb04317f62643ab2005b601da2265c502c93 (diff) | |
Merge "Use uuidutils.is_uuid_like for uuid validation"
Diffstat (limited to 'nova/utils.py')
| -rw-r--r-- | nova/utils.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/nova/utils.py b/nova/utils.py index 284d72b55..d97c2ce3f 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -772,18 +772,6 @@ def gen_uuid(): return uuid.uuid4() -def is_uuid_like(val): - """For our purposes, a UUID is a string in canonical form: - - aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa - """ - try: - uuid.UUID(val) - return True - except (TypeError, ValueError, AttributeError): - return False - - def bool_from_str(val): """Convert a string representation of a bool into a bool value""" |
