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: