From bef451193ffe6c7239c545ed1c93769b50c9e0a8 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 25 Oct 2022 10:45:41 -0400 Subject: [PATCH] 19377: Improve log message about skipping health check during diags. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- lib/diagnostics/cmd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/diagnostics/cmd.go b/lib/diagnostics/cmd.go index 888503b551..c944db6660 100644 --- a/lib/diagnostics/cmd.go +++ b/lib/diagnostics/cmd.go @@ -62,6 +62,7 @@ func (Command) RunCommand(prog string, args []string, stdin io.Reader, stdout, s } // docker save hello-world > hello-world.tar +// //go:embed hello-world.tar var HelloWorldDockerImage []byte @@ -156,7 +157,7 @@ func (diag *diagnoser) runtests() { return err } if cluster.SystemRootToken != os.Getenv("ARVADOS_API_TOKEN") { - diag.infof("skipping because provided token is not SystemRootToken") + diag.infof("skipping because SystemRootToken read from %s does not match $ARVADOS_API_TOKEN (consider using 'arvados-client sudo diagnostics' to load endpoint and token from config file instead of environment)", ldr.Path) return nil } agg := &health.Aggregator{Cluster: cluster} -- 2.30.2