Skip to content

Commit

Permalink
Merge pull request #8297 from fanminshi/fix_txn_ctl
Browse files Browse the repository at this point in the history
etcdctl:  print "del" instead of "delete" in txn interactive mode
  • Loading branch information
fanminshi committed Jul 24, 2017
2 parents e9a7f35 + 09f67a0 commit dfd3ef4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions e2e/ctl_v3_txn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func ctlV3Txn(cx ctlCtx, rqs txnRequests) error {
return err
}

_, err = proc.Expect("success requests (get, put, delete):")
_, err = proc.Expect("success requests (get, put, del):")
if err != nil {
return err
}
Expand All @@ -132,7 +132,7 @@ func ctlV3Txn(cx ctlCtx, rqs txnRequests) error {
return err
}

_, err = proc.Expect("failure requests (get, put, delete):")
_, err = proc.Expect("failure requests (get, put, del):")
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions etcdctl/ctlv3/command/txn_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dfd3ef4

Please sign in to comment.