Skip to content

Commit

Permalink
Fix update check in PreprovisioningImage controller
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneb committed Sep 12, 2024
1 parent 6fa86e0 commit 6c308e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/metal3.io/preprovisioningimage_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func setImage(generation int64, status *metal3api.PreprovisioningImageStatus, im
metal3api.ConditionImageError, metav1.ConditionFalse,
time, reason, "")

changed := !apiequality.Semantic.DeepEqual(status, &newStatus)
changed := !apiequality.Semantic.DeepEqual(status, newStatus)
*status = *newStatus
return changed
}
Expand Down

0 comments on commit 6c308e7

Please sign in to comment.