Browse Source

filter status result by project name

Signed-off-by: aiordache <[email protected]>
aiordache 5 years ago
parent
commit
50c99ed7f6
1 changed files with 3 additions and 0 deletions
  1. 3 0
      aci/backend.go

+ 3 - 0
aci/backend.go

@@ -460,6 +460,9 @@ func (cs *aciComposeService) List(ctx context.Context, project string) ([]compos
 		if _, found := group.Tags[composeContainerTag]; !found {
 			continue
 		}
+		if project != "" && *group.Name != project {
+			continue
+		}
 		state := compose.RUNNING
 		for _, container := range *group.ContainerGroupProperties.Containers {
 			containerState := convert.GetStatus(container, group)