Skip to content

Commit 3b65b97

Browse files
committed
fix: allow redfish detection to fall back to "standard" in other AMI implementations
1 parent 0b66c81 commit 3b65b97

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/standard.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,12 +1005,8 @@ impl RedfishStandard {
10051005
match vendor {
10061006
// nvidia dgx systems may have both ami and nvidia as vendor strings depending on hw
10071007
// ami also ships its bmc fw for other system vendors.
1008-
RedfishVendor::AMI => {
1009-
if self.system_id == "DGX" && self.manager_id == "BMC" {
1010-
Ok(Box::new(crate::nvidia_viking::Bmc::new(self.clone())?))
1011-
} else {
1012-
Ok(Box::new(crate::ami::Bmc::new(self.clone())?))
1013-
}
1008+
RedfishVendor::AMI if self.system_id == "DGX" && self.manager_id == "BMC" => {
1009+
Ok(Box::new(crate::nvidia_viking::Bmc::new(self.clone())?))
10141010
}
10151011
RedfishVendor::Dell => Ok(Box::new(crate::dell::Bmc::new(self.clone())?)),
10161012
RedfishVendor::Hpe => Ok(Box::new(crate::hpe::Bmc::new(self.clone())?)),

0 commit comments

Comments
 (0)