19679748 remove 03-uuid-format.patch from Heat
authorDrew Fisher <drew.fisher@oracle.com>
Wed, 24 Sep 2014 10:04:56 -0600
changeset 2110 6983cfc62f1d
parent 2109 ed516b43cefc
child 2111 4988638320c4
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	Thu Sep 18 18:52:39 2014 -0400
+++ /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
[email protected]@ -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)