Skip to content

Commit

Permalink
LeakDetection is an instance in ThermalSubsystem (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsli authored Nov 25, 2024
1 parent 5c1df48 commit c960693
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions redfish/thermalsubsystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ func (thermalsubsystem *ThermalSubsystem) Heaters() ([]*Heater, error) {
}

// LeakDetection gets the leak detection system within this chassis.
func (thermalsubsystem *ThermalSubsystem) LeakDetection() ([]*LeakDetection, error) {
return ListReferencedLeakDetections(thermalsubsystem.GetClient(), thermalsubsystem.leakDetection)
func (thermalsubsystem *ThermalSubsystem) LeakDetection() (*LeakDetection, error) {
if thermalsubsystem.leakDetection == "" {
return nil, nil
}

return GetLeakDetection(thermalsubsystem.GetClient(), thermalsubsystem.leakDetection)
}

// Pumps gets the pumps for this equipment.
Expand Down

0 comments on commit c960693

Please sign in to comment.