forked from coop-cloud/abra
fix: catch multiple containers correctly
This commit is contained in:
parent
a170e26e27
commit
cdb76e7276
|
@ -64,10 +64,10 @@ var appRunCommand = &cli.Command{
|
|||
logrus.Fatal(err)
|
||||
}
|
||||
|
||||
switch len(containers) {
|
||||
case 0:
|
||||
if len(containers) == 0 {
|
||||
logrus.Fatalf("no containers matching '%s' found?", stackAndServiceName)
|
||||
case 1:
|
||||
}
|
||||
if len(containers) > 1 {
|
||||
logrus.Fatalf("expected 1 container matching '%s' but got %d", stackAndServiceName, len(containers))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue