Skip to content

sfpshow: prevent 'show int trans eeprom --dom' from crashing#567

Merged
jleveque merged 1 commit intosonic-net:masterfrom
ds952811:SONIC-5279-DOM
Jul 25, 2019
Merged

sfpshow: prevent 'show int trans eeprom --dom' from crashing#567
jleveque merged 1 commit intosonic-net:masterfrom
ds952811:SONIC-5279-DOM

Conversation

@ds952811
Copy link
Copy Markdown
Contributor

@ds952811 ds952811 commented Jul 2, 2019

When some specific 25G DAC attached to the system, the 'dom_info_dict'
could be a None object, as a result, the 'show int transceiver eeprom --dom'
will crash.

And thus, in this commit, we'll add an additional checker for the None object.

Signed-off-by: Dante (Kuo-Jung) Su [email protected]
Change-Id: Ic2b5eb38ddf98b98cce7eddf161595013a19c720

- What I did
Add a None object checker to prevent CLI from crashing

- How I did it
Add a None object checker

- How to verify it
Attach a 25G DAC to the system

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

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

-->

When some specific 25G DAC attached to the system, the 'dom_info_dict'
could be a None object, as a result, the 'show int transceiver eeprom --dom'
will crash.

And thus, in this commit, we'll add an additional checker for the None object.

Signed-off-by: Dante (Kuo-Jung) Su <[email protected]>
Change-Id: Ic2b5eb38ddf98b98cce7eddf161595013a19c720
@stcheng stcheng added the Bug label Jul 2, 2019
@jleveque
Copy link
Copy Markdown
Contributor

jleveque commented Jul 2, 2019

Retest this please

3 similar comments
@qiluo-msft
Copy link
Copy Markdown
Contributor

Retest this please

@jleveque
Copy link
Copy Markdown
Contributor

Retest this please

@jleveque
Copy link
Copy Markdown
Contributor

Retest this please

@jleveque jleveque merged commit b9d962d into sonic-net:master Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants