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

Fix: SonicV2Connector behavior change: get_all will return empty dict if the hash does not exist in Redis #226

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

qiluo-msft
Copy link
Contributor

@qiluo-msft qiluo-msft commented Jul 11, 2021

- What I did
Fixes sonic-net/sonic-buildimage#8140

ref: swsssdk implementation returns None, and the library will be deprecated
libswsscommon implementation returns empty dict

- How I did it
Relax the condition check to accept both representations

- How to verify it
Unit test

- Description for the changelog

the hash does not exist in Redis

ref: swsssdk implementation returns None, and the library will be deprecated
     libswsscommon implementation returns empty dict
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
@SuvarnaMeenakshi SuvarnaMeenakshi merged commit 21d7d97 into sonic-net:master Jul 12, 2021
@qiluo-msft qiluo-msft deleted the qiluo/isnone branch July 14, 2021 01:45
qiluo-msft added a commit that referenced this pull request Jul 14, 2021
… if (#226)

the hash does not exist in Redis

- What I did
Fixes sonic-net/sonic-buildimage#8140
ref: swsssdk implementation returns None, and the library will be deprecated
libswsscommon implementation returns empty dict
- How I did it
Relax the condition check to accept both representations
- How to verify it
Unit test
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
@dgsudharsan
Copy link
Collaborator

@qiluo-msft @SuvarnaMeenakshi Required for 202106

judyjoseph pushed a commit that referenced this pull request Oct 14, 2021
… if (#226)

the hash does not exist in Redis

- What I did
Fixes sonic-net/sonic-buildimage#8140
ref: swsssdk implementation returns None, and the library will be deprecated
libswsscommon implementation returns empty dict
- How I did it
Relax the condition check to accept both representations
- How to verify it
Unit test
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[snmp] test_snmp_default_route failure
4 participants