mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
Wait for tailscale client to be ready after tailscale up
This commit is contained in:
parent
cb2790984f
commit
9989657c0f
1 changed files with 6 additions and 0 deletions
|
@ -258,7 +258,13 @@ func (s *Scenario) RunTailscaleUp(
|
||||||
// TODO(kradalby): error handle this
|
// TODO(kradalby): error handle this
|
||||||
_ = c.Up(loginServer, authKey)
|
_ = c.Up(loginServer, authKey)
|
||||||
}(client)
|
}(client)
|
||||||
|
|
||||||
|
err := client.WaitForReady()
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("error waiting for client %s to be ready: %s", client.Hostname(), err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace.joinWaitGroup.Wait()
|
namespace.joinWaitGroup.Wait()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue