Module: fix parameter order error in cli/ps.go

Fixes: #1017
reason: when calls vci.ProcessListContainer, fix wrong parameter order

Signed-off-by: x00464843 <xueshaojia@huawei.com>
This commit is contained in:
x00464843 2018-12-14 08:41:18 +08:00
parent 21f0059487
commit 08f1c05144

View File

@ -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
}