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 KeyError in pfc config command #3563

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

arista-hpandya
Copy link
Contributor

What I did

Used getenv to return None if the env variable is missing instead of key error. Fixes sonic-net/sonic-buildimage#20398

How I did it

Same as above

How to verify it

Run the pfc config asymmetric on EthernetX command on a T2 topology linecard

Previous command output (if the output of a command-line utility has changed)

KeyError: 'UTILITIES_UNIT_TESTING'

New command output (if the output of a command-line utility has changed)

No output (as expected). Config commands change attributes as expected

@dgsudharsan
Copy link
Collaborator

@qiluo-msft @bingwang-ms Can you please help to merge this fix? This is blocking our tests

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #3569

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[PFC] pfc config commands lead to traceback due to KeyError
5 participants