From 4c8b439c8a30bf161edb479032092f59d3f8a639 Mon Sep 17 00:00:00 2001 From: kushalmalani Date: Tue, 1 Aug 2023 09:12:28 -0700 Subject: [PATCH] Update warning message (#1331) * Update warning message * Update warning message * Empty commit --- cloud/deployment/deployment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/deployment/deployment.go b/cloud/deployment/deployment.go index 283a46d65..2df3f376d 100644 --- a/cloud/deployment/deployment.go +++ b/cloud/deployment/deployment.go @@ -676,8 +676,8 @@ func Update(deploymentID, label, ws, description, deploymentName, dagDeploy, exe if deploymentUpdate.APIKeyOnlyDeployments && dagDeploy != "" { if !canCiCdDeploy(c.Token) { - fmt.Printf("\nWarning: You are trying to update dag deploy setting on a deployment with ci-cd enforcement enabled. You will not be able to deploy your dags using the CLI and that dags will not be visible in the UI and new tasks will not start." + - "\nEither disable ci-cd enforcement or please cancel this operation and use API Tokens or API Keys instead.") + fmt.Printf("\nWarning: You are trying to update the dag deploy setting with ci-cd enforcement enabled. Once the setting is updated, you will not be able to deploy your dags using the CLI. Until you deploy your dags, dags will not be visible in the UI nor will new tasks start." + + "\nAfter the setting is updated, either disable cicd enforcement and then deploy your dags OR deploy your dags via CICD or using API Keys/Token.") y, _ := input.Confirm("\n\nAre you sure you want to continue?") if !y {