fix ps/exec command parameter error

Signed-off-by: Shukui Yang <yangshukui@huawei.com>
This commit is contained in:
Shukui Yang 2016-09-18 09:34:06 +08:00
parent 1db7315287
commit d5dd8931c5
2 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@ following will output a list of processes running in the container:
}
return fmt.Errorf("exec failed: %v", err)
},
SkipArgReorder: true,
}
func execProcess(context *cli.Context) (int, error) {

1
ps.go
View File

@ -87,6 +87,7 @@ var psCommand = cli.Command{
}
return nil
},
SkipArgReorder: true,
}
func getPidIndex(title string) (int, error) {