From fe2207f9f327837d42b68cfcdefe43b539f00f4b Mon Sep 17 00:00:00 2001 From: jichen Date: Mon, 28 May 2018 13:59:05 +0800 Subject: [PATCH] Add support version in exception output The latest version of Incompatible check exception Shows in the exception output but the supported version is not listed. Change-Id: Ia9f433342b1b233e119613470a829608085de10c Related-Bug: 1773393 --- oslo_versionedobjects/exception.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oslo_versionedobjects/exception.py b/oslo_versionedobjects/exception.py index 18c2afc7..1541bcfa 100644 --- a/oslo_versionedobjects/exception.py +++ b/oslo_versionedobjects/exception.py @@ -155,7 +155,8 @@ class OrphanedObjectError(VersionedObjectsException): class IncompatibleObjectVersion(VersionedObjectsException): - msg_fmt = _('Version %(objver)s of %(objname)s is not supported') + msg_fmt = _('Version %(objver)s of %(objname)s is not supported, ' + 'supported version is %(supported)s') class ReadOnlyFieldError(VersionedObjectsException):