WIP: Pshing extrapolate again

This commit is contained in:
Rodolfo Pacheco 2020-10-28 17:43:26 -04:00
parent 366a5178b7
commit adeb978243
3 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ func (r *SIPClusterReconciler) gatherVM(sip airshipv1.SIPCluster) (error, *airsh
// So that LB and Jump Host all leverage the same
err = machines.Extrapolate(sip, r.Client)
if err != nil {
return err, machines
return err, machines
}
return nil, machines

View File

@ -30,4 +30,4 @@ type ErrorHostIpNotFound struct {
func (e ErrorHostIpNotFound) Error() string {
return fmt.Sprintf("Unable to identify the vBMH Host %v IP address on interface %v required by Infrastructure Service %v ", e.HostName, e.IPInterface, e.ServiceName)
}
}

View File

@ -250,7 +250,7 @@ func (ml *MachineList) scheduleIt(nodeRole airshipv1.VmRoles, nodeCfg airshipv1.
// Extrapolate
// The intention is to extract the IP information from the referenced networkData field for the BareMetalHost
func (ml *MachineList) Extrapolate(sip airshipv1.SIPCluster, c client.Client) error {
func (ml *MachineList) Extrapolate(sip airshipv1.SIPCluster, c client.Client) error {
// Lets get the data for all selected BMH's.
for _, machine := range ml.bmhs {
bmh := machine.Bmh