etcdctl/ctlv2: use latest Action interface

This commit is contained in:
Gyu-Ho Lee
2016-06-20 15:54:35 -07:00
parent 0ae9d444f9
commit bdca594495
19 changed files with 73 additions and 37 deletions

View File

@ -46,7 +46,7 @@ func NewBackupCommand() cli.Command {
}
// handleBackup handles a request that intends to do a backup.
func handleBackup(c *cli.Context) {
func handleBackup(c *cli.Context) error {
var srcWAL string
var destWAL string
@ -113,4 +113,6 @@ func handleBackup(c *cli.Context) {
if err := neww.SaveSnapshot(walsnap); err != nil {
log.Fatal(err)
}
return nil
}