diff --git a/src/swsssdk/configdb.py b/src/swsssdk/configdb.py index 6bffad96edd4..e255979aae92 100644 --- a/src/swsssdk/configdb.py +++ b/src/swsssdk/configdb.py @@ -137,7 +137,7 @@ def __typed_to_raw(self, typed_data): if type(value) is list: raw_data[key+'@'] = ','.join(value) else: - raw_data[key] = value + raw_data[key] = str(value) return raw_data @staticmethod @@ -145,7 +145,7 @@ def serialize_key(key): if type(key) is tuple: return ConfigDBConnector.KEY_SEPARATOR.join(key) else: - return key + return str(key) @staticmethod def deserialize_key(key):