From cedb39170496e13bfa0e553981de194dff060b88 Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Tue, 17 Feb 2026 17:27:31 +0100 Subject: [PATCH] set default cluster selection only when it is not empty --- cmd/command/up/up.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/command/up/up.go b/cmd/command/up/up.go index 61920083..8d6c513e 100644 --- a/cmd/command/up/up.go +++ b/cmd/command/up/up.go @@ -220,8 +220,12 @@ func (p *Plural) choseCluster() (name, url string, err error) { prompt := &survey.Select{ Message: "Select one of the following clusters:", Options: clusterNames, - Default: defaultSelection, } + + if defaultSelection != "" { + prompt.Default = defaultSelection + } + if err = survey.AskOne(prompt, &name, survey.WithValidator(survey.Required)); err != nil { return }