Skip to content

Commit

Permalink
fix --deployment flag behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
paul committed Jul 3, 2018
1 parent 7d1c56d commit 4016983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/deployment/delete_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func DeleteContainer(ctx *context.Context) *cobra.Command {
var logger = ctx.Log.Command("delete deployment container")
logger.Debugf("START")
defer logger.Debugf("END")
if flags.Force && flags.Deployment != "" {
if flags.Force && flags.Deployment == "" {
ferr.Printf("deployment name must be provided as --deployment while using --force")
ctx.Exit(1)
} else if flags.Deployment == "" {
Expand Down

0 comments on commit 4016983

Please sign in to comment.