Skip to content

Commit

Permalink
add update status api call
Browse files Browse the repository at this point in the history
  • Loading branch information
enxebre authored and ingvagabund committed Nov 1, 2018
1 parent 1910baa commit 9ccb179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/aws/actuators/machine/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (a *Actuator) updateMachineStatus(machine *clusterv1.Machine, awsStatus *pr
time := metav1.Now()
machineCopy.Status.LastUpdated = &time

if err := a.client.Update(context.Background(), machineCopy); err != nil {
if err := a.client.Status().Update(context.Background(), machineCopy); err != nil {
glog.Errorf("error updating machine status: %v", err)
return err
}
Expand Down

0 comments on commit 9ccb179

Please sign in to comment.