# HG changeset patch # User Drew Fisher # Date 1411574696 21600 # Node ID 6983cfc62f1d3cfcc20a6742d9ac7253743870a3 # Parent ed516b43cefca29099544446aa7229bc2e5c0513 19679748 remove 03-uuid-format.patch from Heat diff -r ed516b43cefc -r 6983cfc62f1d 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 -@@ -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)