From 08f1c051442239f4759e1d36a3e133f9d66036a9 Mon Sep 17 00:00:00 2001 From: x00464843 Date: Fri, 14 Dec 2018 08:41:18 +0800 Subject: [PATCH] Module: fix parameter order error in cli/ps.go Fixes: #1017 reason: when calls vci.ProcessListContainer, fix wrong parameter order Signed-off-by: x00464843 --- cli/ps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/ps.go b/cli/ps.go index fff957ccd7..8eb837c86a 100644 --- a/cli/ps.go +++ b/cli/ps.go @@ -92,7 +92,7 @@ func ps(ctx context.Context, containerID, format string, args []string) error { options.Format = format - msg, err := vci.ProcessListContainer(ctx, containerID, sandboxID, options) + msg, err := vci.ProcessListContainer(ctx, sandboxID, containerID, options) if err != nil { return err }