Skip to content

Commit

Permalink
Merge pull request #79 from kubevirt-bot/cherry-pick-78-to-release-4.2
Browse files Browse the repository at this point in the history
[release-4.2] Update only the status of the MDB under the MHC
  • Loading branch information
Artyom Lukianov authored Sep 18, 2019
2 parents 240415b + 7273c5e commit 1ccdf20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ func decrementMachineDisruptionsAllowed(c client.Client, machineName string, mdb
// If the machine is not remediated within a reasonable time limit MDB controller will assume that it won't
// be remediated at all and remove it from DisruptedMachines map.
mdb.Status.DisruptedMachines[machineName] = metav1.Time{Time: time.Now()}
return c.Update(context.TODO(), mdb)
return c.Status().Update(context.TODO(), mdb)
}

// RetryDecrementMachineDisruptionsAllowed validates if the disruption is allowed, when it allowed it will decrement
Expand Down

0 comments on commit 1ccdf20

Please sign in to comment.