Call correct client when building Host object

This will make sure that corect driver is used when managing
remote hosts via redfish.

Change-Id: Ic0d7f946ca4e64a6a8df1ab5bd65e4ecec130988
This commit is contained in:
Kostiantyn Kalynovskyi 2021-01-07 10:43:37 -06:00 committed by Kostyantyn Kalynovskyi
parent 991fcdcd9e
commit bd1728405a

View File

@ -202,7 +202,7 @@ func newBaremetalHost(mgmtCfg config.ManagementConfiguration,
log.Debug("Remote type: Redfish")
clientFactory = redfish.ClientFactory
case redfishdell.ClientType:
clientFactory = redfish.ClientFactory
clientFactory = redfishdell.ClientFactory
default:
return host, ErrUnknownManagementType{Type: mgmtCfg.Type}
}