Always attempt to parse login url

This commit is contained in:
Juan Font Alonso 2022-11-04 00:04:04 +01:00
parent 45cb0f3fa3
commit 5d7eae46f8

View File

@ -170,10 +170,7 @@ func (t *TailscaleInContainer) UpWithLoginURL(
t.hostname, t.hostname,
} }
_, stderr, err := t.Execute(command) _, stderr, _ := t.Execute(command)
if err != errTailscaleNotLoggedIn {
return nil, errTailscaleCannotUpWithoutAuthkey
}
urlStr := strings.ReplaceAll(stderr, "\nTo authenticate, visit:\n\n\t", "") urlStr := strings.ReplaceAll(stderr, "\nTo authenticate, visit:\n\n\t", "")
urlStr = strings.TrimSpace(urlStr) urlStr = strings.TrimSpace(urlStr)