1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-10-17 20:05:55 +02:00

fix: loop over result machines instead of startup machines

This commit is contained in:
Adrien Raffin-Caboisse 2022-05-13 12:14:11 +02:00
parent 72c1edaaa4
commit 49ec9943b9
No known key found for this signature in database
GPG Key ID: 7FB60532DEBEAD6A

View File

@ -630,7 +630,7 @@ func (s *IntegrationCLITestSuite) TestNodeTagCommand() {
assert.Nil(s.T(), err)
json.Unmarshal([]byte(listAllResult), &resultMachines)
found := false
for _, machine := range machines {
for _, machine := range resultMachines {
if machine.ForcedTags != nil {
for _, tag := range machine.ForcedTags {
if tag == "tag:test" {