Skip to content

Commit 5c06ca5

Browse files
committed
fix deploy approvals wait command polling loop
1 parent 0fb97d4 commit 5c06ca5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

internal/cli/deploy_approvals_wait.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ func (w *deployApprovalWaiter) pollNextRack() (bool, error) {
150150
return done, err
151151
}
152152

153-
// Check for already-approved requests
153+
// If we just handled a request (marked rack as approved), we're done with this rack
154+
if w.approvedRacks[rack] {
155+
return w.shouldExit(), nil
156+
}
157+
158+
// Check for already-approved requests (from previous sessions or other users)
154159
return w.checkApprovedRequests(rack)
155160
}
156161

0 commit comments

Comments
 (0)