Skip to content

Commit

Permalink
bug: sets safeundeploy default to false #409 (#512)
Browse files Browse the repository at this point in the history
* bug: sets safeundeploy default to false #409

* bug: update the description #409
  • Loading branch information
srinandan authored Jul 18, 2024
1 parent a9003e3 commit 0062579
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/apis/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

const deploymentMsg = "When set to true, generateDeployChangeReport will be executed and " +
"deployment will proceed if there are no conflicts; default is true"
"deployment will proceed if there are no conflicts; default is false"

func GetRevision(respBody []byte) (revision int, err error) {
var apiProxyRevResp map[string]interface{}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/apis/undepapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func init() {
UndepCmd.Flags().IntVarP(&revision, "rev", "v",
-1, "API Proxy revision. If not set, the highest revision is used")
UndepCmd.Flags().BoolVarP(&safeUndeploy, "safeundeploy", "",
true, deploymentMsg)
false, deploymentMsg)

_ = UndepCmd.MarkFlagRequired("env")
_ = UndepCmd.MarkFlagRequired("name")
Expand Down

0 comments on commit 0062579

Please sign in to comment.