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
This commit is contained in:
Matt Riedemann 2016-09-13 15:56:50 -04:00
parent e07b78c735
commit c231bfb6c4

View File

@ -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"))