ctr: fix Sprintf
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
parent
40d966f00e
commit
2836fbeed1
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ var listCommand = cli.Command{
|
||||||
w := tabwriter.NewWriter(os.Stdout, 10, 1, 3, ' ', 0)
|
w := tabwriter.NewWriter(os.Stdout, 10, 1, 3, ' ', 0)
|
||||||
fmt.Fprintln(w, "ID\tPID\tSTATUS")
|
fmt.Fprintln(w, "ID\tPID\tSTATUS")
|
||||||
for _, c := range response.Containers {
|
for _, c := range response.Containers {
|
||||||
if _, err := fmt.Fprintf(w, "%s\t%s\t%s\n",
|
if _, err := fmt.Fprintf(w, "%s\t%d\t%s\n",
|
||||||
c.ID,
|
c.ID,
|
||||||
c.Pid,
|
c.Pid,
|
||||||
c.Status.String(),
|
c.Status.String(),
|
||||||
|
|
Loading…
Reference in a new issue