-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow specifying the Redfish system name: #400
Conversation
For Redfish implementations that manage multiple systems bening able to specify the system name is required. This is the case with sushy-tools, which is a redfish emulator for libvirt and others. Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
10873c2
to
2e4cfbb
Compare
return nil, err | ||
} | ||
|
||
return c.matchingSystem(s), nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edit: ignore this comment - I now see the method defaults to returning all Systems.
We'd want to keep the default behavior here - to return all Systems - when c.systemName was not specified
return c.matchingSystem(s), nil | |
if c.systemName != "" { | |
return c.matchingSystem(s), nil | |
} | |
return s, nil |
@@ -120,6 +127,8 @@ func New(host, user, pass string, log logr.Logger, opts ...Option) *Conn { | |||
redfishwrapper.WithHTTPClient(defaultConfig.HttpClient), | |||
redfishwrapper.WithVersionsNotCompatible(defaultConfig.VersionsNotCompatible), | |||
redfishwrapper.WithEtagMatchDisabled(defaultConfig.DisableEtagMatch), | |||
redfishwrapper.WithBasicAuthEnabled(defaultConfig.UseBasicAuth), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for fixing this
What does this PR implement/change/remove?
For Redfish implementations that manage multiple systems being able to specify the system name is required to be able to interact with the desired machine. This is the case with sushy-tools, which is a redfish emulator for libvirt and others. Also, enabling redfish basic auth was not plumbed through and is now.
Checklist
The HW vendor this change applies to (if applicable)
The HW model number, product name this change applies to (if applicable)
The BMC firmware and/or BIOS versions that this change applies to (if applicable)
What version of tooling - vendor specific or opensource does this change depend on (if applicable)
Description for changelog/release notes