From 36f0583adf34bff32a9567f0459b17df24e0ee7b Mon Sep 17 00:00:00 2001 From: Peter Hamilton Date: Wed, 4 Jan 2017 12:01:39 -0500 Subject: [PATCH] Fixes a mismapped polymorphic identity for X509Certificate objects This change updates the polymorphic identity used by X509Certificate objects. The original identity was already used by the base Certificate object, causing sqlalchemy to raise a warning when used. This change resolves the identity reassignment and prevents the warning from being displayed. --- kmip/pie/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmip/pie/objects.py b/kmip/pie/objects.py index c233aaf..67e0bf6 100644 --- a/kmip/pie/objects.py +++ b/kmip/pie/objects.py @@ -820,7 +820,7 @@ class X509Certificate(Certificate): primary_key=True) __mapper_args__ = { - 'polymorphic_identity': 'Certificate' + 'polymorphic_identity': 'X509Certificate' } __table_args__ = { 'sqlite_autoincrement': True