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:
parent
991fcdcd9e
commit
bd1728405a
@ -202,7 +202,7 @@ func newBaremetalHost(mgmtCfg config.ManagementConfiguration,
|
|||||||
log.Debug("Remote type: Redfish")
|
log.Debug("Remote type: Redfish")
|
||||||
clientFactory = redfish.ClientFactory
|
clientFactory = redfish.ClientFactory
|
||||||
case redfishdell.ClientType:
|
case redfishdell.ClientType:
|
||||||
clientFactory = redfish.ClientFactory
|
clientFactory = redfishdell.ClientFactory
|
||||||
default:
|
default:
|
||||||
return host, ErrUnknownManagementType{Type: mgmtCfg.Type}
|
return host, ErrUnknownManagementType{Type: mgmtCfg.Type}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user