mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-27 20:15:25 +00:00
Merge pull request #729 from juanfont/fix-reuse-of-ns
Minor fix to linting issue introduced when fixing excludeCorrectlyTaggedNodes (#707)
This commit is contained in:
commit
73cd428ed2
4
acls.go
4
acls.go
@ -421,9 +421,9 @@ func excludeCorrectlyTaggedNodes(
|
|||||||
) []Machine {
|
) []Machine {
|
||||||
out := []Machine{}
|
out := []Machine{}
|
||||||
tags := []string{}
|
tags := []string{}
|
||||||
for tag, ns := range aclPolicy.TagOwners {
|
for tag := range aclPolicy.TagOwners {
|
||||||
owners, _ := expandTagOwners(aclPolicy, namespace, stripEmailDomain)
|
owners, _ := expandTagOwners(aclPolicy, namespace, stripEmailDomain)
|
||||||
ns = append(owners, namespace)
|
ns := append(owners, namespace)
|
||||||
if contains(ns, namespace) {
|
if contains(ns, namespace) {
|
||||||
tags = append(tags, tag)
|
tags = append(tags, tag)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user