mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-07 08:24:23 +01:00
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:
@@ -92,7 +92,7 @@ func ps(ctx context.Context, containerID, format string, args []string) error {
|
|||||||
|
|
||||||
options.Format = format
|
options.Format = format
|
||||||
|
|
||||||
msg, err := vci.ProcessListContainer(ctx, containerID, sandboxID, options)
|
msg, err := vci.ProcessListContainer(ctx, sandboxID, containerID, options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user