mirror of
https://github.com/docker/compose.git
synced 2026-10-22 03:42:22 +00:00
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
9e98e6101e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue