Skip to content

Commit

Permalink
stats: fix parsing template
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Nov 16, 2021
1 parent a9ee8fa commit 8ce66a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/nerdctl/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (
"github.com/containerd/nerdctl/pkg/rootlessutil"
"github.com/containerd/nerdctl/pkg/statsutil"
"github.com/containerd/typeurl"
"github.com/docker/cli/templates"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -315,7 +314,7 @@ func statsAction(cmd *cobra.Command, args []string) error {
case "raw":
return errors.New("unsupported format: \"raw\"")
default:
tmpl, err = templates.Parse(format)
tmpl, err = parseTemplate(format)
if err != nil {
break
}
Expand Down

0 comments on commit 8ce66a1

Please sign in to comment.