From ca352220b56ddbbae178fcacd7f45ecf1602216c Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 15 Aug 2017 08:14:54 +0000 Subject: [PATCH] ctr: fix `ctr snapshot commit` Signed-off-by: Akihiro Suda --- cmd/ctr/snapshot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ctr/snapshot.go b/cmd/ctr/snapshot.go index 726382169..741e741f4 100644 --- a/cmd/ctr/snapshot.go +++ b/cmd/ctr/snapshot.go @@ -228,8 +228,8 @@ var commitSnapshotCommand = cli.Command{ return cli.ShowSubcommandHelp(clicontext) } - key := clicontext.Args().Get(1) - active := clicontext.Args().Get(0) + key := clicontext.Args().Get(0) + active := clicontext.Args().Get(1) snapshotter, err := getSnapshotter(clicontext) if err != nil {