From c231bfb6c4743baaa1429487621d3bf18e4f1c6a Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Tue, 13 Sep 2016 15:56:50 -0400 Subject: [PATCH] Fix TypeError in sanity check logging format The logger needs 'cap' in a replacement dict else you get a TypeError when formatting. Change-Id: I0bc9c8fe8f0f4e5fc44030fcc3217ccd1b485d51 Closes-Bug: #1623176 --- 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 3810d1fa03a..f2958130352 100644 --- a/neutron/cmd/sanity/checks.py +++ b/neutron/cmd/sanity/checks.py @@ -154,7 +154,7 @@ def _vf_management_support(required_caps): vf_section, cap): is_supported = False LOG.debug("ip link command does not support " - "vf capability '%(cap)s'", cap) + "vf capability '%(cap)s'", {'cap': cap}) except ip_link_support.UnsupportedIpLinkCommand: LOG.exception(_LE("Unexpected exception while checking supported " "ip link command"))