Skip to content

Commit

Permalink
Retain default behaviour if deployID is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Mongey committed Jan 29, 2021
1 parent dd0f7f0 commit 008799f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions levant/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ func (l *levantDeployment) deploy() (success bool) {
return
}

if depID == "" {
log.Info().Msgf("levant/deploy: no deploy ID found for evaluation %s", eval.EvalID)
return l.jobStatusChecker(&eval.EvalID)
}

log.Info().Msgf("levant/deploy: watching deployment %s for job", depID)
// Get the success of the deployment and return if we have success.
if success = l.deploymentWatcher(depID); success {
Expand Down

0 comments on commit 008799f

Please sign in to comment.