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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

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.

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