From f9543a57a8c40e2444715571050824860d127d58 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Wed, 25 Oct 2023 15:54:43 +0200 Subject: prompt: fix qa/prod distinction for qa clusters that do not have qa as a prefix --- internal/prompt/cloud.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/prompt/cloud.go b/internal/prompt/cloud.go index ce3160f..0f69243 100644 --- a/internal/prompt/cloud.go +++ b/internal/prompt/cloud.go @@ -105,7 +105,7 @@ func buildKubernetesField(context, namespace string) string { if context == "" { return "" } - if !strings.HasPrefix(context, "qa") { + if !strings.Contains(context, "qa") { //visual warning when working in a productive region context = withColor("1;41", context) } -- cgit v1.3.1