From a270c94baaa9b092c65c431a91d1b0de4b45765a Mon Sep 17 00:00:00 2001 From: liora Date: Thu, 9 Sep 2021 19:23:02 +0000 Subject: [PATCH] Fix issue in get_interface_oid_map(), in call to db.get_all() change blocking argument to keyword argument Signed-off-by: liora --- src/swsssdk/port_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/swsssdk/port_util.py b/src/swsssdk/port_util.py index 3bec3917..f16440d2 100644 --- a/src/swsssdk/port_util.py +++ b/src/swsssdk/port_util.py @@ -66,8 +66,8 @@ def get_interface_oid_map(db, blocking=True): Get the Interface names from Counters DB """ db.connect('COUNTERS_DB') - if_name_map = db.get_all('COUNTERS_DB', 'COUNTERS_PORT_NAME_MAP', blocking) - if_lag_name_map = db.get_all('COUNTERS_DB', 'COUNTERS_LAG_NAME_MAP', blocking) + if_name_map = db.get_all('COUNTERS_DB', 'COUNTERS_PORT_NAME_MAP', blocking=blocking) + if_lag_name_map = db.get_all('COUNTERS_DB', 'COUNTERS_LAG_NAME_MAP', blocking=blocking) if_name_map.update(if_lag_name_map) if not if_name_map: