From ce6f749c12769c89a054bb49da174529da786f1c Mon Sep 17 00:00:00 2001 From: George Teo Date: Thu, 10 May 2018 20:59:21 -0700 Subject: [PATCH] Fix y/n --- cmd/tools/cmq/repair.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/tools/cmq/repair.go b/cmd/tools/cmq/repair.go index 58bcaecc..3a85447c 100644 --- a/cmd/tools/cmq/repair.go +++ b/cmd/tools/cmq/repair.go @@ -37,7 +37,9 @@ func repair(c *cli.Context) error { } fmt.Printf("Please confirm the deletion plan above.\n" + "You should confirm that the consumer_group_uuid match ONLY the consumer_group_uuid provided") - askForConfirmation("Delete now") + if askForConfirmation("Delete now") == false { + return nil + } run := c.Bool("run") timeout := c.Duration("timeout")