mirror of
https://github.com/gravitational/teleport
synced 2024-10-21 09:44:51 +00:00
5fe9617fcf
tsh shows clusters alerts for both `tsh login` and `tsh status`. We intentionally used a short (500ms) timeout to avoid slowing down `tsh status` which was previously an "offline" command. As a side effect, cluster alerts would not always show on login if they took longer than 500ms to fetch. This change ensures that we always wait for cluster alerts to come back for `tsh login`, but we still enforce a short timeout for the `tsh status` command. (The timeout was increased slightly since the context now wraps the entire command and not just the cluster alerts call) Fixes #25239 |
||
---|---|---|
.. | ||
common.go | ||
common_test.go |