Skip to content

Commit

Permalink
[agent] no sonic-platform on vs
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Apr 28, 2024
1 parent eaa14d8 commit 183201b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/agent/dozer/bcm/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,11 @@ func (p *BroadcomProcessor) updatePlatformMetrics(ctx context.Context, reg *swit
if err := p.client.Get(ctx, "/sonic-platform", dev); err != nil {
return errors.Wrapf(err, "failed to get sonic-platform")
}

// TODO handle it better - no transceiver-dom on VS
if dev.SonicPlatform == nil {
return errors.Errorf("sonic-platform not found")
// return errors.Errorf("sonic-platform not found")
return nil
}

if dev.SonicPlatform.FAN_INFO != nil {
Expand Down

0 comments on commit 183201b

Please sign in to comment.