mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-12 01:27:07 +02:00
Before we started a reboot/shutdown/reset/upgrade action with the action tracker (`--wait`), we were setting a flag to prevent cobra from printing the returned error from the command. This was to prevent the error from being printed twice, as the reporter of the action tracker already prints any errors occurred during the action execution. But if the error happens too early - i.e. before we even started the status printer goroutine, then that error wouldn't be printed at all, as we have suppressed the errors. This PR moves the suppression flag to be set after the status printer is started - so we still do not double-print the errors, but neither do we suppress any early-stage error from being printed. Closes siderolabs/talos#7900. Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com> |
||
---|---|---|
.. | ||
api | ||
base | ||
cli | ||
k8s | ||
provision | ||
integration_test.go | ||
version_test.go |