From 9f19609a37f274eb952fc9edaf27f3982a561680 Mon Sep 17 00:00:00 2001 From: Enxebre Date: Mon, 18 Nov 2019 15:10:54 +0100 Subject: [PATCH] Use getMachineInstances to find instances during update() call --- pkg/actuators/machine/actuator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/actuators/machine/actuator.go b/pkg/actuators/machine/actuator.go index a8a438efd8..9d5cd68c1c 100644 --- a/pkg/actuators/machine/actuator.go +++ b/pkg/actuators/machine/actuator.go @@ -421,7 +421,7 @@ func (a *Actuator) Update(context context.Context, cluster *clusterv1.Cluster, m return a.handleMachineError(machine, err, updateEventAction) } // Get all instances not terminated. - existingInstances, err := getExistingInstances(machine, client) + existingInstances, err := a.getMachineInstances(cluster, machine) if err != nil { glog.Errorf("%s: error getting existing instances: %v", machine.Name, err) return err