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

Work around unpopulated hwsku in db_migrator.py #2634

Closed
wants to merge 1 commit into from

Conversation

rjthomson
Copy link

Handle the case where hwsku is None.
See sonic-net/sonic-buildimage#12083 and sonic-net/sonic-buildimage#11416

What I did

How I did it

db_migrator.py can fail on Arista devices if the hwsku field is not populated.
Check that the field is not None before trying to read the value.

How to verify it

Tested on Arista products, the error no longer occurs.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 28, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@maipbui
Copy link
Contributor

maipbui commented Aug 25, 2023

@maipbui maipbui closed this Aug 25, 2023
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.

2 participants