Skip to content

Commit cb95910

Browse files
jarqviglours
authored andcommitted
chore: print model attribute instead of model name used in compose file
Signed-off-by: MohammadHasan Akbari <[email protected]>
1 parent f42226e commit cb95910

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/compose/config.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,10 @@ func runModels(ctx context.Context, dockerCli command.Cli, opts configOptions) e
393393
if err != nil {
394394
return err
395395
}
396-
for n := range project.Models {
397-
_, _ = fmt.Fprintln(dockerCli.Out(), n)
396+
for _, model := range project.Models {
397+
if model.Model != "" {
398+
_, _ = fmt.Fprintln(dockerCli.Out(), model.Model)
399+
}
398400
}
399401
return nil
400402
}

0 commit comments

Comments
 (0)