Avoid missing key 'password' for neighbor_add

Change-Id: Iffa8f8da017364a3b471475a4123356e2030dba5
Story: 2009779
Task: 44260
(cherry picked from commit 58a3939239)
This commit is contained in:
elajkat 2022-01-12 19:10:02 +01:00 committed by Lajos Katona
parent 7619c024d8
commit 018d755fd7
2 changed files with 7 additions and 3 deletions

View File

@ -6,6 +6,7 @@
check:
jobs:
- tempest-integrated-networking
- neutron-tempest-plugin-dynamic-routing
gate:
jobs:
- tempest-integrated-networking

View File

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