Sometimes, sonic-mgmt need check values in redis db by calling "sonic-db-cli $DB HGETALL $KEY". And it would be great if the output of such command can be parsed to a python dictionary easily.
However, sonic-db-cli now return raw string for hgetall comamnd. For example:
Sometimes, sonic-mgmt need check values in redis db by calling "sonic-db-cli $DB HGETALL $KEY". And it would be great if the output of such command can be parsed to a python dictionary easily.
However, sonic-db-cli now return raw string for hgetall comamnd. For example:
Python json module cannot parse such string to a dictionary:
I would suggest to change the following code in sonic-db-cli from:
to
Any thought?