From 410a95ec88a55d2a32cd5136b6fc89df4b838d9a Mon Sep 17 00:00:00 2001 From: Pavel Sviderski Date: Thu, 10 Apr 2025 20:29:52 +1000 Subject: [PATCH] chroe: add TODO to fix empty context in output message when adding machines --- internal/cli/cli.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/cli/cli.go b/internal/cli/cli.go index 632aa51d..07b8315a 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -325,6 +325,7 @@ func (cli *CLI) AddMachine( return nil, fmt.Errorf("join cluster: %w", err) } + // TODO: fix empty context name when using the current context (contextName == ""). fmt.Printf("Machine '%s' added to the cluster (context '%s').\n", addResp.Machine.Name, contextName) // Save the machine's SSH connection details in the context config.