summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2023-10-25 15:54:43 +0200
committerStefan Majewsky <majewsky@gmx.net>2023-10-25 15:54:50 +0200
commitf9543a57a8c40e2444715571050824860d127d58 (patch)
treeb38f759f586345c433bb777307749595e4a8c61b /internal
parentd51753b8a70daba25c8bfff1b99ab6551e3f9dde (diff)
downloadgofu-f9543a57a8c40e2444715571050824860d127d58.tar.gz
prompt: fix qa/prod distinction for qa clusters that do not have qa as a prefix
Diffstat (limited to 'internal')
-rw-r--r--internal/prompt/cloud.go2
1 files changed, 1 insertions, 1 deletions
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)
}