From 79f89db7fef191e22f0494b468a099edd6f0d611 Mon Sep 17 00:00:00 2001 From: Angus Lees Date: Wed, 17 Dec 2014 15:07:28 +1100 Subject: [PATCH] Correct arguments to logging function ofctl_arg_supported contains a bad call to LOG.debug in an exception path. LOG.debug("...%s. Exception: %s", (full_args, e)) This throws "TypeError: not enough arguments for format string" and should be: LOG.debug("...%s. Exception: %s", full_args, e) (Found via pylint) Change-Id: Ib14666f60b16584f225b1e0c4fed82ef7e941aac Closes-Bug: #1403296 --- neutron/cmd/sanity/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/cmd/sanity/checks.py b/neutron/cmd/sanity/checks.py index d13b0f91d25..c672546a1bf 100644 --- a/neutron/cmd/sanity/checks.py +++ b/neutron/cmd/sanity/checks.py @@ -68,7 +68,7 @@ def ofctl_arg_supported(root_helper, cmd, **kwargs): agent_utils.execute(full_args, root_helper=root_helper) except RuntimeError as e: LOG.debug("Exception while checking supported feature via " - "command %s. Exception: %s", (full_args, e)) + "command %s. Exception: %s", full_args, e) return False except Exception: LOG.exception(_LE("Unexpected exception while checking supported"