Skip to content

Commit

Permalink
Return 0 for CRM counter instead of None if no match (sonic-net#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
prsunny authored May 8, 2019
1 parent 98fa958 commit ff9b93b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_crm.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def getCrmCounterValue(dvs, key, counter):
if k[0] == counter:
return int(k[1])

return 0


def setReadOnlyAttr(dvs, obj, attr, val):

Expand Down

0 comments on commit ff9b93b

Please sign in to comment.