1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00

chore: fmt for grpc file

This commit is contained in:
Adrien Raffin-Caboisse 2022-04-16 13:15:18 +02:00
parent 89a1a56328
commit 4fcc5e253c
No known key found for this signature in database
GPG Key ID: 7FB60532DEBEAD6A

View File

@ -281,7 +281,11 @@ func (api headscaleV1APIServer) ListMachines(
response := make([]*v1.Machine, len(machines)) response := make([]*v1.Machine, len(machines))
for index, machine := range machines { for index, machine := range machines {
m := machine.toProto() m := machine.toProto()
validTags, invalidTags := getTags(*api.h.aclPolicy, machine, api.h.cfg.OIDC.StripEmaildomain) validTags, invalidTags := getTags(
*api.h.aclPolicy,
machine,
api.h.cfg.OIDC.StripEmaildomain,
)
m.InvalidTags = invalidTags m.InvalidTags = invalidTags
m.ValidTags = validTags m.ValidTags = validTags
response[index] = m response[index] = m