Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Tran committed Oct 9, 2024
1 parent d0c3b29 commit 52ff517
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/slurm/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func createEnvFile(Ctx context.Context, config SlurmConfig, podData commonIL.Ret
}

// All env variables are written, we flush it now.
err := envfile.Sync()
err = envfile.Sync()
if err != nil {
log.G(Ctx).Error(err)
return nil, nil, err
Expand All @@ -241,12 +241,13 @@ func prepareEnvs(Ctx context.Context, config SlurmConfig, podData commonIL.Retri
var envs []string = []string{}
// For debugging purpose only
envs_data := []string{}
var err error

if len(container.Env) > 0 {
envs, envs_data, err := createEnvFile(Ctx, config, podData, container)
envs, envs_data, err = createEnvFile(Ctx, config, podData, container)
if err != nil {
log.G(Ctx).Error(err)
return nil, err
return nil
}
}

Expand Down

0 comments on commit 52ff517

Please sign in to comment.