Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 0cddd2a

Browse files
committed
Retain default behaviour if deployID is empty
1 parent ab53639 commit 0cddd2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

levant/deploy.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ func (l *levantDeployment) deploy() (success bool) {
164164
return
165165
}
166166

167+
if depID == "" {
168+
log.Info().Msgf("levant/deploy: no deploy ID found for evaluation %s", eval.EvalID)
169+
return l.jobStatusChecker(&eval.EvalID)
170+
}
171+
167172
log.Info().Msgf("levant/deploy: watching deployment %s for job", depID)
168173
// Get the success of the deployment and return if we have success.
169174
if success = l.deploymentWatcher(depID); success {

0 commit comments

Comments
 (0)