Skip to content

Commit 1b166f0

Browse files
committed
deny deploying of versions not in deploy status
1 parent 75c90a8 commit 1b166f0

File tree

9 files changed

+814
-215
lines changed

9 files changed

+814
-215
lines changed

apps/workspace-engine/pkg/workspace/releasemanager/policymanager/decision.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (d *DeployDecision) GetPendingActions() []*results.RuleEvaluationResult {
2525
}
2626

2727
func (d *DeployDecision) CanDeploy() bool {
28-
return len(d.GetPendingActions()) == 0
28+
return !d.IsBlocked() && len(d.GetPendingActions()) == 0
2929
}
3030

3131
func (d *DeployDecision) IsPending() bool {

0 commit comments

Comments
 (0)