From bb0e144b43f9252dadfb877ce92f1c7cc1623c41 Mon Sep 17 00:00:00 2001 From: fanmin shi Date: Fri, 21 Jul 2017 14:31:39 -0700 Subject: [PATCH] etcdctl: print "del" instead of "delete" in txn interactive mode --- etcdctl/ctlv3/command/txn_command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etcdctl/ctlv3/command/txn_command.go b/etcdctl/ctlv3/command/txn_command.go index d5e75b05b..aa8491be3 100644 --- a/etcdctl/ctlv3/command/txn_command.go +++ b/etcdctl/ctlv3/command/txn_command.go @@ -52,9 +52,9 @@ func txnCommandFunc(cmd *cobra.Command, args []string) { txn := mustClientFromCmd(cmd).Txn(context.Background()) promptInteractive("compares:") txn.If(readCompares(reader)...) - promptInteractive("success requests (get, put, delete):") + promptInteractive("success requests (get, put, del):") txn.Then(readOps(reader)...) - promptInteractive("failure requests (get, put, delete):") + promptInteractive("failure requests (get, put, del):") txn.Else(readOps(reader)...) resp, err := txn.Commit()