Merge branch 'main' into switch-to-db-d

This commit is contained in:
Juan Font 2022-08-11 15:02:08 +02:00 committed by GitHub
commit 393aae01df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -421,9 +421,9 @@ func excludeCorrectlyTaggedNodes(
) []Machine {
out := []Machine{}
tags := []string{}
for tag, ns := range aclPolicy.TagOwners {
for tag := range aclPolicy.TagOwners {
owners, _ := expandTagOwners(aclPolicy, namespace, stripEmailDomain)
ns = append(owners, namespace)
ns := append(owners, namespace)
if contains(ns, namespace) {
tags = append(tags, tag)
}