Commit b7861cc
[configdb] fix bug of leaving unwanted columns in a hash (sonic-net#23)
Current implementation doesn't remove unwanted columes with set_entry
like below.
>>> set_entry('table', 'key', {'key1': 'value1', 'key2': 'value2'})
>>> set_entry('table', 'key', {'key1': 'value3'})
>>> get_entry('table', 'key')
{'key1': 'value3', 'key2': 'value2'}
This commit fix this bug.
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>1 parent c289190 commit b7861cc
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
160 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
161 | 166 | | |
162 | 167 | | |
163 | 168 | | |
| |||
0 commit comments