mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
chore: print model attribute instead of model name used in compose file
Signed-off-by: MohammadHasan Akbari <jarqvi.jarqvi@gmail.com>
This commit is contained in:
parent
f42226e352
commit
cb95910018
@ -393,8 +393,10 @@ func runModels(ctx context.Context, dockerCli command.Cli, opts configOptions) e
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
for n := range project.Models {
|
for _, model := range project.Models {
|
||||||
_, _ = fmt.Fprintln(dockerCli.Out(), n)
|
if model.Model != "" {
|
||||||
|
_, _ = fmt.Fprintln(dockerCli.Out(), model.Model)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user