Skip to content

Commit 934124f

Browse files
authored
[Bugfix] Update Plan Condition (#1886)
1 parent 0c2d5e8 commit 934124f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/deployment/deployment_inspector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ func (d *Deployment) sendCIUpdate() {
452452
}
453453

454454
func (d *Deployment) isUpToDateStatus(mode api.DeploymentMode, status api.DeploymentStatus) (upToDate bool, reason string) {
455-
if !status.IsPlanEmpty() || !status.Conditions.IsTrue(api.ConditionTypeUpToDate) {
455+
if !status.IsPlanEmpty() && !status.Conditions.IsTrue(api.ConditionTypeUpToDate) {
456456
return false, "Plan is not empty"
457457
}
458458

0 commit comments

Comments
 (0)