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

Commit 1af56e6

Browse files
authored
Merge pull request #286 from mre/patch-1
Fix segfault when accessing dep, which is nil on error.
2 parents 995be01 + 985dbc3 commit 1af56e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

levant/deploy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (l *levantDeployment) deploy() (success bool) {
177177

178178
dep, _, err := l.nomad.Deployments().Info(depID, nil)
179179
if err != nil {
180-
log.Error().Err(err).Msgf("levant/deploy: unable to query deployment %s for auto-revert check", dep.ID)
180+
log.Error().Err(err).Msgf("levant/deploy: unable to query deployment %s for auto-revert check", depID)
181181
return
182182
}
183183

0 commit comments

Comments
 (0)