-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
good first issueGood for newcomersGood for newcomerskind/featureNew feature or requestNew feature or request
Description
Raising this as an issue to point out, it would be ideal if this used the FilterForCompatible
method
here
rufio/controllers/bmcclient.go
Line 19 in 13eef9a
client.Registry.Drivers = client.Registry.PreferDriver("gofish") |
This way the BMC is 'probed' for compatibility and only drivers known to be working with the BMC will be attempted
when the caller invokes the client methods.
drivers := client.Registry.FilterForCompatible(ctx)
if len(drivers) == 0 {
return nil, errors.New("no compatible bmclib drivers found")
}
client.Registry.Drivers = drivers
I understand the redfish
driver is hardcoded at the moment, so whenever that is changed I suggest using the filter method above.
chrisdoherty4 and pokearu
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerskind/featureNew feature or requestNew feature or request