Skip to content

Commit

Permalink
[port_util] Fix issue in function get_interface_oid_map (#114)
Browse files Browse the repository at this point in the history
**What I did**
Change argument 'blocking' in call to function get_all() to a keyword argument as it should.

**How I did it**
Add blocking=xxx in function call.

**How to verify it**
This issue is failing the checkers when updating this submodule hash in sonic-buildimage (see sonic-net/sonic-buildimage#8696).
  • Loading branch information
liorghub authored Sep 13, 2021
1 parent 740a44c commit 9da577d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swsssdk/port_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9da577d

Please sign in to comment.