From ffd9873c66014b4019cd6491ad2c5b2f32b4e7b6 Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Tue, 12 Jul 2016 17:00:09 +0100 Subject: [PATCH] Update UUID type for py3.5 compat Change-Id: Ia9ddcf66c13def98b4b7df3b76f9f3dff53c42ca --- designate/sqlalchemy/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designate/sqlalchemy/types.py b/designate/sqlalchemy/types.py index e308f89e7..b576e8bf9 100644 --- a/designate/sqlalchemy/types.py +++ b/designate/sqlalchemy/types.py @@ -42,10 +42,10 @@ class UUID(TypeDecorator): return str(value) else: if not isinstance(value, uuid.UUID): - return "%.32x" % uuid.UUID(value) + return "%.32x" % uuid.UUID(value).int else: # hexstring - return "%.32x" % value + return "%.32x" % value.int def process_result_value(self, value, dialect): if value is None: