From 058928321f78a5bdefcc1a219da797f330d1c2fc Mon Sep 17 00:00:00 2001 From: madhu Pal Date: Fri, 25 Jan 2019 17:49:46 +0000 Subject: [PATCH] [configdb.py] Fixed __raw_to_typed() api to return correct typed object when redis key is NULL(#277) Signed-off-by: madhu Pal --- src/swsssdk/configdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swsssdk/configdb.py b/src/swsssdk/configdb.py index e255979aa..93cca5887 100644 --- a/src/swsssdk/configdb.py +++ b/src/swsssdk/configdb.py @@ -109,7 +109,7 @@ def __raw_to_typed(self, raw_data): # "NULL:NULL" is used as a placeholder for objects with no attributes if key == "NULL": - pass + typed_data = { "NULL": "NULL" } # A column key with ending '@' is used to mark list-typed table items # TODO: Replace this with a schema-based typing mechanism. elif key.endswith("@"):