From 7fd27e74a46a48a59bedbede946c62f4590a3bc8 Mon Sep 17 00:00:00 2001 From: Paolo Dettori Date: Tue, 28 May 2024 15:54:58 -0400 Subject: [PATCH] fix message for context switch of control plane of type host Signed-off-by: Paolo Dettori --- cmd/kflex/ctx/ctx.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kflex/ctx/ctx.go b/cmd/kflex/ctx/ctx.go index 65d26a3..7dd4fe2 100644 --- a/cmd/kflex/ctx/ctx.go +++ b/cmd/kflex/ctx/ctx.go @@ -92,8 +92,8 @@ func (c *CPCtx) Context(chattyStatus, failIfNone bool) { os.Exit(1) } } else { - fmt.Fprintf(os.Stderr, "control plane %s is of type 'host', cannot switch context\n", c.Name) - os.Exit(1) + fmt.Fprintf(os.Stderr, "control plane %s is of type 'host', using hosting cluster context\n", c.Name) + os.Exit(0) } } done <- true