Skip to content

Commit

Permalink
fix message for context switch of control plane of type host
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Dettori <[email protected]>
  • Loading branch information
pdettori committed May 28, 2024
1 parent 145a3c1 commit 7fd27e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kflex/ctx/ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fd27e7

Please sign in to comment.