Fix cli lint throwing error on warnings (#2995)

split out from  #2771

---------

Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
6543
2023-12-22 23:34:17 +01:00
committed by GitHub
parent f6ca346f13
commit cd9d425a0d
2 changed files with 4 additions and 4 deletions

View File

@@ -318,10 +318,10 @@ func (e *docker) DestroyWorkflow(_ context.Context, conf *backend.Config, taskUU
for _, step := range stage.Steps {
containerName := toContainerName(step)
if err := e.client.ContainerKill(noContext, containerName, "9"); err != nil && !isErrContainerNotFoundOrNotRunning(err) {
log.Error().Err(err).Msgf("could not kill container '%s'", stage.Name)
log.Error().Err(err).Msgf("could not kill container '%s'", step.Name)
}
if err := e.client.ContainerRemove(noContext, containerName, removeOpts); err != nil && !isErrContainerNotFoundOrNotRunning(err) {
log.Error().Err(err).Msgf("could not remove container '%s'", stage.Name)
log.Error().Err(err).Msgf("could not remove container '%s'", step.Name)
}
}
}