Skip to content

Commit 9e98e61

Browse files
gloursndeloof
authored andcommitted
add missing _MODEL suffix to model variable pass to dependent services of a model
Signed-off-by: Guillaume Lours <[email protected]>
1 parent 52f0422 commit 9e98e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (m *modelAPI) SetModelVariables(ctx context.Context, project *types.Project
195195
if modelConfig != nil && modelConfig.ModelVariable != "" {
196196
variable = modelConfig.ModelVariable
197197
} else {
198-
variable = varPrefix
198+
variable = varPrefix + "_MODEL"
199199
}
200200
service.Environment[variable] = &model.Model
201201

0 commit comments

Comments
 (0)