Skip to content

Commit

Permalink
Fix platform type detection issue with DVT Tahan
Browse files Browse the repository at this point in the history
Summary:
[FBOSS] Fix platform type detection issue with DVT Tahan
Dealing with the cornercase: DVT Tahan returns "TAHAN" when dmidecode is executed.

Reviewed By: birdsoup

Differential Revision:
D62992946

Privacy Context Container: L1125642

fbshipit-source-id: d6f229f24d3876eb17924ce45be1deb66eb17f95
  • Loading branch information
Mike Choi authored and facebook-github-bot committed Sep 19, 2024
1 parent d7a21ac commit aa52a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fboss/lib/platforms/PlatformProductInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void PlatformProductInfo::initMode() {
modelName.find("JANGA800BIC") == 0 || modelName.find("JANGA") == 0) {
type_ = PlatformType::PLATFORM_JANGA800BIC;
} else if (
modelName.find("TAHAN800BC") == 0 ||
modelName.find("TAHAN") == 0 || modelName.find("TAHAN800BC") == 0 ||
modelName.find("R4063-F9001-01") == 0) {
type_ = PlatformType::PLATFORM_TAHAN800BC;
} else {
Expand Down

0 comments on commit aa52a7e

Please sign in to comment.