Skip to content

Commit

Permalink
fix(qemu): Do not set the new state to unknown (#1323)
Browse files Browse the repository at this point in the history
Reviewed-by: Cezar Craciunoiu <[email protected]>
Approved-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc authored Feb 28, 2024
2 parents abc9250 + 1133fd6 commit 27eeb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/qemu/v1alpha1.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ func (service *machineV1alpha1Service) Get(ctx context.Context, machine *machine

// Finally, save the state if it is different from the what we have on
// record
if state != savedState {
if state != machinev1alpha1.MachineStateUnknown && state != savedState {
machine.Status.State = state
}
}()
Expand Down

0 comments on commit 27eeb87

Please sign in to comment.