Skip to content

Commit

Permalink
[configdb.py] Fix bug in get_table() where no data is returned if val…
Browse files Browse the repository at this point in the history
…ues are NULL (sonic-net#36)
  • Loading branch information
jleveque authored Sep 17, 2018
1 parent 667b821 commit 9d36ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swsssdk/configdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def get_table(self, table):
for key in keys:
try:
entry = self.__raw_to_typed(client.hgetall(key))
if entry:
if entry != None:
if PY3K:
key = key.decode('utf-8')
(_, row) = key.split(self.TABLE_NAME_SEPARATOR, 1)
Expand Down

0 comments on commit 9d36ad3

Please sign in to comment.