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
This commit is contained in:
parent
c3e19729ee
commit
0c91e9c58b
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user