Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[configdb.py] Fixed __raw_to_typed() api to return correct typed obje… #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madhupalu
Copy link
Contributor

…ct when redis key is NULL(#277)

Signed-off-by: madhu Pal [email protected]

What I did
Fixed __raw_to_typed() api to return correct typed object when redis key is NULL.
How I did
As we store "NULL:NULL" as a placeholder for objects with no attributes, the __raw_to_typed() returns None, which causes get_entry() returns None for objects exists with no attributes.

To fix this issue - added code in __raw_to_typed() to return typed_data = {"NULL":"NULL"} when Key = NULL

…ct when redis key is NULL(#277)

Signed-off-by: madhu Pal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant