Skip to content

rfc2737: check if entry is not empty before accessing it#368

Open
ymd-arista wants to merge 1 commit intosonic-net:masterfrom
ymd-arista:master-check-entity-before-access
Open

rfc2737: check if entry is not empty before accessing it#368
ymd-arista wants to merge 1 commit intosonic-net:masterfrom
ymd-arista:master-check-entity-before-access

Conversation

@ymd-arista
Copy link
Contributor

In PsuCacheUpdater and FanCacheUpdater, when we try to get
information of a PSU/Fan from Physical entity info table, we fail to check
whether there is no entry for that psu/fan in the table.

We see this issue in sonic-net/sonic-buildimage#25652, where going
further without checking if there is no entry causes an exception in such
scenarios. This patch aims to fix that issue.

Signed-off-by: Mohan Yelugoti <ymd@arista.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ymd-arista
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants