Skip to content

Commit 3ba6645

Browse files
1arpndeloof
authored andcommitted
pass All option to backend api.Service when length statuses is not equal to zero
Signed-off-by: 1arp <[email protected]>
1 parent 4ce63f5 commit 3ba6645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/compose/ps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func runPs(ctx context.Context, dockerCli command.Cli, backend api.Service, serv
113113

114114
containers, err := backend.Ps(ctx, name, api.PsOptions{
115115
Project: project,
116-
All: opts.All,
116+
All: opts.All || len(opts.Status) != 0,
117117
Services: services,
118118
})
119119
if err != nil {

0 commit comments

Comments
 (0)