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:
parent
e07b78c735
commit
c231bfb6c4
@ -154,7 +154,7 @@ def _vf_management_support(required_caps):
|
|||||||
vf_section, cap):
|
vf_section, cap):
|
||||||
is_supported = False
|
is_supported = False
|
||||||
LOG.debug("ip link command does not support "
|
LOG.debug("ip link command does not support "
|
||||||
"vf capability '%(cap)s'", cap)
|
"vf capability '%(cap)s'", {'cap': cap})
|
||||||
except ip_link_support.UnsupportedIpLinkCommand:
|
except ip_link_support.UnsupportedIpLinkCommand:
|
||||||
LOG.exception(_LE("Unexpected exception while checking supported "
|
LOG.exception(_LE("Unexpected exception while checking supported "
|
||||||
"ip link command"))
|
"ip link command"))
|
||||||
|
Loading…
Reference in New Issue
Block a user