Browse Source

don't exit with err=1 when no container listed

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 years ago
parent
commit
e1267cddfd
1 changed files with 0 additions and 4 deletions
  1. 0 4
      cmd/compose/ps.go

+ 0 - 4
cmd/compose/ps.go

@@ -124,10 +124,6 @@ SERVICES:
 		return fmt.Errorf("no such service: %s", s)
 	}
 
-	if len(containers) == 0 {
-		return api.ErrNotFound
-	}
-
 	if opts.Status != "" {
 		containers = filterByStatus(containers, opts.Status)
 	}