From f4eeac73e3c079bab8bc127dede8ad9e4e84216a Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Thu, 14 Feb 2019 15:18:19 -0500 Subject: [PATCH] Fix _find_related_obj() RuntimeError output When _find_related_obj() raises a RuntimeError, the output is something like this: RuntimeError: (u'revises_on_change relationships must have load_on_pending set to True to bump parent revisions on create: %s', 'networks') Should be using a % to print the message correctly. Trivialfix Change-Id: I90f9ef7c6de00ae388adb303c0e22a2a6c112e88 --- neutron/services/revisions/revision_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/services/revisions/revision_plugin.py b/neutron/services/revisions/revision_plugin.py index b56f52871d0..291d7b77de2 100644 --- a/neutron/services/revisions/revision_plugin.py +++ b/neutron/services/revisions/revision_plugin.py @@ -105,8 +105,8 @@ class RevisionPlugin(service_base.ServicePluginBase): if not rel.load_on_pending: raise RuntimeError(_("revises_on_change relationships must " "have load_on_pending set to True to " - "bump parent revisions on create: %s"), - relationship_col) + "bump parent revisions on create: %s") + % relationship_col) def _clear_rev_bumped_flags(self, session): """This clears all flags on commit/rollback to enable rev bumps."""