Avoid missing key 'password' for neighbor_add
Change-Id: Iffa8f8da017364a3b471475a4123356e2030dba5
Story: 2009779
Task: 44260
(cherry picked from commit 58a3939239
)
This commit is contained in:
parent
c002a2b928
commit
32c3cac164
@ -7,6 +7,7 @@
|
||||
check:
|
||||
jobs:
|
||||
- tempest-integrated-networking
|
||||
- neutron-tempest-plugin-dynamic-routing
|
||||
gate:
|
||||
jobs:
|
||||
- tempest-integrated-networking
|
||||
|
@ -192,10 +192,13 @@ def call(symbol, **kwargs):
|
||||
"""Calls/executes BGPS public API identified by given symbol and passes
|
||||
given kwargs as param.
|
||||
"""
|
||||
if 'password' in kwargs:
|
||||
log_str = str(
|
||||
dict(kwargs.items() - {'password': kwargs['password']}.items()))
|
||||
else:
|
||||
log_str = str(kwargs)
|
||||
LOG.info(
|
||||
"API method %s called with args: %s",
|
||||
symbol,
|
||||
str(dict(kwargs.items() - {'password': kwargs['password']}.items())))
|
||||
"API method %s called with args: %s", symbol, log_str)
|
||||
|
||||
# TODO(PH, JK) improve the way api function modules are loaded
|
||||
from . import all # noqa
|
||||
|
Loading…
Reference in New Issue
Block a user