mirror of https://github.com/docker/compose.git
add missing _MODEL suffix to model variable pass to dependent services of a model
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
52f04229c0
commit
de12ad917e
|
|
@ -195,7 +195,7 @@ func (m *modelAPI) SetModelVariables(ctx context.Context, project *types.Project
|
|||
if modelConfig != nil && modelConfig.ModelVariable != "" {
|
||||
variable = modelConfig.ModelVariable
|
||||
} else {
|
||||
variable = varPrefix
|
||||
variable = varPrefix + "_MODEL"
|
||||
}
|
||||
service.Environment[variable] = &model.Model
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue