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 e6f2c0d1a2
commit 5e9a961cbb
2 changed files with 10 additions and 3 deletions

View File

@ -3,3 +3,7 @@
- openstack-python3-victoria-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3
check:
jobs:
- tempest-integrated-networking
- neutron-tempest-plugin-dynamic-routing

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