From 31610c12c09d44d1bd9770d5052a67f43970565c Mon Sep 17 00:00:00 2001 From: Jacob Weinstock Date: Wed, 23 Oct 2024 16:08:13 -0600 Subject: [PATCH] Implement CRD update into bmclib client: The new CRD fields in the redfish provider options were not implemented in the client instantiation. Signed-off-by: Jacob Weinstock --- controller/client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/controller/client.go b/controller/client.go index 080e6d0..e89759c 100644 --- a/controller/client.go +++ b/controller/client.go @@ -64,6 +64,12 @@ func (b BMCOptions) Translate(host string) []bmclib.Option { if b.Redfish.Port != 0 { o = append(o, bmclib.WithRedfishPort(strconv.Itoa(b.Redfish.Port))) } + if b.Redfish.UseBasicAuth { + o = append(o, bmclib.WithRedfishUseBasicAuth(true)) + } + if b.Redfish.SystemName != "" { + o = append(o, bmclib.WithRedfishSystemName(b.Redfish.SystemName)) + } } // ipmitool options