ctr: fix Sprintf

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2017-02-20 05:27:09 +00:00
parent 40d966f00e
commit 2836fbeed1

View file

@ -25,7 +25,7 @@ var listCommand = cli.Command{
w := tabwriter.NewWriter(os.Stdout, 10, 1, 3, ' ', 0)
fmt.Fprintln(w, "ID\tPID\tSTATUS")
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.Pid,
c.Status.String(),