19679748 remove 03-uuid-format.patch from Heat s11u2-sru
authorThanukrishnamurthy Madhusudhanan<thanukrishnamurthy.madhusudha@oracle.com>
Fri, 09 Jan 2015 14:26:04 -0800
branchs11u2-sru
changeset 3617 6ac3649b964f
parent 3615 65fee2788831
child 3619 639868f63ef4
19679748 remove 03-uuid-format.patch from Heat
components/openstack/heat/patches/03-uuid-format.patch
--- a/components/openstack/heat/patches/03-uuid-format.patch	Fri Jan 09 13:49:31 2015 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-In-house patch to force the conversion of UUIDs to UUID version 4.
-libuuid in Solaris does not set the version of UUID correctly (bug
-15391420).
---- heat-2013.2.3/heat/common/short_id.py.orig	2014-06-26 11:03:04.050413825 -0600
-+++ heat-2013.2.3/heat/common/short_id.py	2014-06-26 11:04:48.397644826 -0600
-@@ -38,9 +38,10 @@
-     The supplied UUID must be a version 4 UUID object.
-     '''
-     if isinstance(source_uuid, basestring):
--        source_uuid = uuid.UUID(source_uuid)
--    if source_uuid.version != 4:
--        raise ValueError('Invalid UUID version (%d)' % source_uuid.version)
-+        try:
-+            source_uuid = uuid.UUID(source_uuid, version=4)
-+        except ValueError:
-+            raise ValueError('Invalid UUID: %s' % source_uuid)
- 
-     # The "time" field of a v4 UUID contains 60 random bits
-     # (see RFC4122, Section 4.4)