Skip to content

Commit

Permalink
[configdb]: Fixed TypeErrorException when get_config with python3 son…
Browse files Browse the repository at this point in the history
  • Loading branch information
madhupalu authored and lguohan committed Jan 31, 2019
1 parent cb4fec9 commit 74eb33e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/swsssdk/configdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ def get_config(self):
keys = client.keys('*')
data = {}
for key in keys:
if PY3K:
key = key.decode('utf-8')
try:
(table_name, row) = key.split(self.TABLE_NAME_SEPARATOR, 1)
entry = self.__raw_to_typed(client.hgetall(key))
Expand Down

0 comments on commit 74eb33e

Please sign in to comment.