Selaa lähdekoodia

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

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 vuotta sitten
vanhempi
sitoutus
e1267cddfd
1 muutettua tiedostoa jossa 0 lisäystä ja 4 poistoa
  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)
 	}