diff options
| author | Zhongyue Luo <zhongyue.nah@intel.com> | 2012-10-31 13:19:10 +0800 |
|---|---|---|
| committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2012-11-05 15:08:45 +0800 |
| commit | d2e7bb04317f62643ab2005b601da2265c502c93 (patch) | |
| tree | c1d42bb8f9d83d0c64042feeaa9f193c71abca53 /nova/utils.py | |
| parent | bb15f2b5b8f9127c1da6b26ac18b306378b3531a (diff) | |
Use uuidutils.is_uuid_like for uuid validation
Change-Id: I8fc760062ecaee45d263db663a52971be96f264a
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""" |
